WordPress security changelog
CRITICAL CVE-2026-4001 Deferred

Woocommerce Custom Product Addons Pro: Code execution

Woocommerce Custom Product Addons Pro is affected by code execution. The vulnerable path is reachable without authentication. Successful exploitation can run attacker-controlled code in the WordPress hosting account. The published affected range is <= 5.4.1.

CVE / CNA score 9.8 CVSS 3.1 · security@wordfence.com
NVD score Pending NVD has not published its own CVSS assessment.
Component
Woocommerce Custom Product Addons Pro
Plugin slug
woocommerce-custom-product-addons-pro
Affected
<= 5.4.1
Safe version
> 5.4.1
Published
Mar 24, 2026
Weakness
CWE-95 — Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

This CVE was published Mar 24, 2026 and is one of 1 known issue for this plugin.

Update, patch or deactivate.

Update Woocommerce Custom Product Addons Pro to a release after 5.4.1, or disable and remove it until a fixed version is available.

A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

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

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary and upstream sources