LiveActive security incident?Get immediate response
CVE Record

CVE-2026-4001: Woocommerce Custom Product Addons Pro <= 5.4.1 - Unauthenticated Remote Code Execution via Custom Pricing Formula

The Woocommerce Custom Product Addons Pro plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 5.4.1 via the custom pricing formula eval() in the process_custom_formula() function within includes/process/price.php. This is due to insufficient sanitization and validation of user-submitted field values before passing them to PHP's eval() function. The sanitize_values() method strips HTML tags but does not escape single quotes or prevent PHP code injection. This makes it possible for unauthenticated attackers to execute arbitrary code on the server by submitting a crafted value to a WCPA text field configured with custom pricing formula (pricingType: "custom" with {this.value}).

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2026-4001 is a critical flaw in the WooCommerce Custom Product Addons Pro WordPress plugin. On affected sites, an unauthenticated visitor may be able to run code on the server through a vulnerable custom pricing formula configuration. This can lead to full site compromise if the plugin and vulnerable field setup are present.

Executive priority

Treat as urgent for any ecommerce site using this plugin. Prioritize identifying affected stores, removing vulnerable configurations, and applying vendor-approved remediation. The business risk includes site takeover, customer data exposure, payment-flow disruption, and reputational harm.

Technical view

The issue is remote code execution in process_custom_formula() in includes/process/price.php. User-submitted WCPA text field values can reach PHP eval() after insufficient sanitization. The described risky configuration is pricingType: custom using {this.value}. The CVSS 3.1 score is 9.8, with network access, low complexity, no privileges, and no user interaction required.

Likely exposure

Exposure appears limited to WordPress/WooCommerce sites running WooCommerce Custom Product Addons Pro up to and including 5.4.1, with a text field configured for custom pricing formula using user input. Internet-facing ecommerce sites are the highest concern.

Exploitation context

The source bundle does not show CISA KEV listing or confirmed active exploitation. However, the vulnerability is unauthenticated, network-reachable, and high-impact when the vulnerable plugin configuration exists, making rapid assessment appropriate.

Researcher notes

CWE-95 is cited, consistent with eval-based code injection. The CVE source describes the vulnerable function, file path, sanitization gap, and triggering configuration. The affected-version metadata in the bundle is inconsistent, so validate against the CVE narrative and vendor/Wordfence references.

Mitigation direction

  • Check vendor and Wordfence guidance for a fixed version or official mitigation.
  • Update or disable WooCommerce Custom Product Addons Pro if affected.
  • Remove or disable custom pricing formulas using direct user text field values.
  • Restrict access to affected product pages until remediation is complete.
  • Back up the site before applying plugin or configuration changes.

Validation and detection

  • Inventory WordPress sites using WooCommerce Custom Product Addons Pro.
  • Confirm installed plugin version, especially versions up to 5.4.1.
  • Review product addon fields for custom pricing formulas using user-submitted text values.
  • Check web server, PHP, and WordPress logs for suspicious requests or unexpected code execution indicators.
  • Verify vendor advisory details before declaring remediation complete.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-95: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-4001 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2026-4001Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
acowebsWoocommerce Custom Product Addons Pro0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.