Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

Woocommerce Custom Product Addons Pro plugin can run malicious code

CVE-2026-4001
Summary

An attacker can potentially execute code on your website by submitting a specially crafted value to a custom pricing field. This could allow them to access or modify sensitive data. Update to the latest version of the plugin to fix the issue.

Original title
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 proces...
Original 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}).
nvd CVSS3.1 9.8
Vulnerability type
CWE-95
Published: 24 Mar 2026 · Updated: 24 Mar 2026 · First seen: 24 Mar 2026