Vulnerability 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}).
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://acowebs.com/woo-custom-product-addons/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/70a2b6ff-defc-4722-9af
FAQ
What is CVE-2026-4001?
CVE-2026-4001 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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_c...
How severe is CVE-2026-4001?
CVE-2026-4001 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-4001?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.