CVE-2026-4001: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in acowebs Woocommerce Custom Product Addons Pro
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}).
AI Analysis
Technical Summary
CVE-2026-4001 is a critical remote code execution vulnerability in the Woocommerce Custom Product Addons Pro WordPress plugin (up to version 5.4.1). The issue stems from the process_custom_formula() function in includes/process/price.php, which uses PHP's eval() on user-submitted custom pricing formulas without sufficient sanitization. The sanitize_values() method removes HTML tags but does not escape single quotes or prevent PHP code injection, enabling unauthenticated attackers to inject and execute arbitrary PHP code by submitting crafted input to a text field configured with a custom pricing formula (pricingType: "custom" with {this.value}). This vulnerability is classified as CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code).
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary PHP code on the affected server, leading to full compromise of confidentiality, integrity, and availability of the system hosting the vulnerable plugin. This can result in data theft, site defacement, malware deployment, or complete server takeover. The CVSS 3.1 base score of 9.8 reflects the high impact and ease of exploitation (network attack vector, no privileges or user interaction required).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, it is recommended to disable or remove the Woocommerce Custom Product Addons Pro plugin if custom pricing formulas are used, or avoid using the custom pricing formula feature to prevent exploitation. Monitor vendor channels for updates and apply official patches promptly once available.
CVE-2026-4001: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in acowebs Woocommerce Custom Product Addons Pro
Description
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}).
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-4001 is a critical remote code execution vulnerability in the Woocommerce Custom Product Addons Pro WordPress plugin (up to version 5.4.1). The issue stems from the process_custom_formula() function in includes/process/price.php, which uses PHP's eval() on user-submitted custom pricing formulas without sufficient sanitization. The sanitize_values() method removes HTML tags but does not escape single quotes or prevent PHP code injection, enabling unauthenticated attackers to inject and execute arbitrary PHP code by submitting crafted input to a text field configured with a custom pricing formula (pricingType: "custom" with {this.value}). This vulnerability is classified as CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code).
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary PHP code on the affected server, leading to full compromise of confidentiality, integrity, and availability of the system hosting the vulnerable plugin. This can result in data theft, site defacement, malware deployment, or complete server takeover. The CVSS 3.1 base score of 9.8 reflects the high impact and ease of exploitation (network attack vector, no privileges or user interaction required).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, it is recommended to disable or remove the Woocommerce Custom Product Addons Pro plugin if custom pricing formulas are used, or avoid using the custom pricing formula feature to prevent exploitation. Monitor vendor channels for updates and apply official patches promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-11T18:29:35.330Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69c1d4a7f4197a8e3ba0b3f1
Added to database: 3/24/2026, 12:02:47 AM
Last enriched: 4/9/2026, 6:49:46 PM
Last updated: 5/8/2026, 9:45:13 AM
Views: 902
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.