Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4001: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in acowebs Woocommerce Custom Product Addons Pro

0
Critical
VulnerabilityCVE-2026-4001cvecve-2026-4001cwe-95
Published: Mon Mar 23 2026 (03/23/2026, 23:25:48 UTC)
Source: CVE Database V5
Vendor/Project: acowebs
Product: 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

AILast updated: 04/09/2026, 18:49:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses