Woocommerce Custom Product Addons Pro <= 5.4.1 - Unauthenticated Remote Code Execution via Custom Pricing Formula
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-95.
Summary
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}).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-4001
- 2026-10-03 Alias added: GHSA-2qpc-rpxq-phv6
References
More acowebs vulnerabilities
- TI-2024-11231 Product Labels For Woocommerce < 1.5.9 - Admin+ SQLi CVSS 3.1MEDIUM 4.1
- TI-2024-09859 Product Labels For Woocommerce < 1.5.11 - Admin+ SQLi CVSS 3.1MEDIUM 4.1
- TI-2025-30085 WordPress Dynamic Pricing With Discount Rules for WooCommerce plugin <= 4.5.9 - Arbitrary Code Execution vulnerability CVSS 3.1CRITICAL 9.1
- TI-2024-01650 PDF Invoices and Packing Slips For WooCommerce <= 1.3.7 - Authenticated (Subscriber+) PHP Object Injection CVSS 3.1HIGH 8.8
- TI-2025-38331 WordPress Product Table For WooCommerce plugin <= 1.2.4 - PHP Object Injection vulnerability CVSS 3.1HIGH 8.8
- TI-2024-19976 WordPress PDF Invoices and Packing Slips For WooCommerce plugin <= 1.3.7 - PHP Object Injection vulnerability CVSS 3.1HIGH 8.8
Sources
- CVE-2026-4001 · CVE Program
- CVE-2026-4001 · NVD
- FIRST EPSS
- GHSA-2qpc-rpxq-phv6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences