Skip to content

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

CriticalCVSS 9.8 EPSS 0.96%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
PHPWordPress

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

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
acowebs Woocommerce Custom Product Addons Pro <= 5.4.1 after 5.4.1 Fixed
wordpress woo-custom-product-addons-pro(WordPress) < 5.4.2 5.4.2 Fixed

Affected products

ProductAffected versionsFixed in
acowebs Woocommerce Custom Product Addons Pro <= 5.4.1 No fix listed
wordpress woo-custom-product-addons-pro(WordPress) < 5.4.2 5.4.2

References