Patchfirst
CVE-2026-4001 Public exploit Critical · 9.8 EPSS 1.0%

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

No fixed version listed yet.Check the vendor advisory. References ↓

acowebs · Woocommerce Custom Product Addons Pro

Summary

The Woocommerce Custom Product Addons Pro plugin for WordPress, in all versions up to and including 5.4.1, passes user-submitted field values to PHP's eval() within the process_custom_formula() function in includes/process/price.php, because sanitize_values() strips HTML tags but neither escapes single quotes nor prevents PHP code injection. An unauthenticated attacker with network access can exploit this by submitting a crafted value to a WCPA text field configured with a custom pricing formula (pricingType "custom" using {this.value}) to execute arbitrary code on the server.

Official description · CVE.org

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}).

Breakdown
66.3 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 1 day after disclosure. Public exploit code (PoC-in-GitHub) appeared 5 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+1 day
  3. Public exploit codePoC-in-GitHub+5 mo

Affected versions and fixes

as published in the CVE record

acowebs Woocommerce Custom Product Addons Pro

Affected: <= 5.4.1

What security researchers reported

Not named in any threat report yet

Also mentioned in 6 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close