The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4001

CVE-2026-4001: WooCommerce Custom Product Addons RCE Flaw

CVE-2026-4001 is a remote code execution vulnerability in WooCommerce Custom Product Addons Pro plugin that allows unauthenticated attackers to execute arbitrary code via eval() injection. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 27, 2026

CVE-2026-4001 Overview

The WooCommerce Custom Product Addons Pro plugin for WordPress contains a critical Remote Code Execution (RCE) vulnerability affecting all versions up to and including 5.4.1. The vulnerability exists in the custom pricing formula functionality, specifically within the process_custom_formula() function located in includes/process/price.php. Insufficient input sanitization allows unauthenticated attackers to inject and execute arbitrary PHP code on vulnerable WordPress installations.

Critical Impact

Unauthenticated attackers can achieve full server compromise by injecting malicious PHP code through product addon text fields configured with custom pricing formulas, potentially leading to complete website takeover, data theft, and lateral movement within hosting environments.

Affected Products

  • WooCommerce Custom Product Addons Pro versions up to and including 5.4.1
  • WordPress installations using vulnerable WCPA Pro versions with custom pricing formulas enabled
  • E-commerce sites utilizing pricingType: "custom" configuration with {this.value} templates

Discovery Timeline

  • 2026-03-24 - CVE CVE-2026-4001 published to NVD
  • 2026-03-24 - Last updated in NVD database

Technical Details for CVE-2026-4001

Vulnerability Analysis

This vulnerability is classified as CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), commonly known as PHP Code Injection or eval() Injection. The core issue stems from the plugin's handling of user-supplied input within custom pricing calculations.

When a product is configured to use custom pricing formulas (specifically when pricingType is set to "custom" and the formula includes {this.value}), user-submitted field values are processed through the sanitize_values() method before being passed to PHP's eval() function. While the sanitization method strips HTML tags from input, it fails to escape single quotes or properly validate that the input contains only numeric or expected mathematical expressions.

This architectural flaw allows an unauthenticated attacker to submit a specially crafted payload through any WCPA text field that has custom pricing enabled. The malicious input bypasses the inadequate sanitization and is directly evaluated as PHP code, granting the attacker arbitrary code execution capabilities with the privileges of the web server process.

Root Cause

The root cause is the combination of two security failures: First, the sanitize_values() method only performs HTML tag stripping without escaping special characters (particularly single quotes) or implementing a whitelist of permitted characters for mathematical expressions. Second, and more fundamentally, the use of PHP's eval() function to process user-controllable input is inherently dangerous. The plugin passes insufficiently sanitized user input directly to eval() for dynamic pricing calculations, creating a direct code injection pathway. A secure implementation would use a mathematical expression parser or a sandboxed evaluation mechanism rather than native PHP code execution.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker identifies a WordPress site using the vulnerable plugin by locating product pages with WCPA custom addon fields. By analyzing the frontend or testing field behavior, the attacker determines which fields use custom pricing formulas. The attacker then crafts a malicious payload designed to break out of the expected mathematical context within the eval() statement and inject arbitrary PHP code. This payload is submitted through the normal product customization interface, such as adding a product to cart with a manipulated field value. Upon processing the pricing formula, the server executes the injected PHP code. This could include establishing reverse shells, creating backdoor files, exfiltrating database credentials, or any other malicious operation. Since the attack requires no privileges and targets a customer-facing feature, all WordPress sites with the vulnerable plugin and custom pricing enabled are at risk.

Detection Methods for CVE-2026-4001

Indicators of Compromise

  • Unusual PHP error logs referencing eval() or process_custom_formula() in includes/process/price.php
  • Web server logs showing product requests with abnormal characters in addon field parameters, particularly single quotes, backticks, or PHP function names
  • Newly created PHP files in WordPress directories with unfamiliar names or recent timestamps
  • Unexpected outbound connections from the web server process to external IP addresses
  • Modified .htaccess files or creation of new admin user accounts

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block requests containing PHP code patterns in product addon parameters
  • Deploy file integrity monitoring on WordPress installations to detect unauthorized file modifications
  • Configure intrusion detection systems to alert on eval() exploitation patterns in HTTP request bodies
  • Utilize SentinelOne's behavioral AI to detect anomalous process execution spawned from PHP/web server processes

Monitoring Recommendations

  • Enable verbose logging for WooCommerce and WCPA Pro plugin activities
  • Monitor web server error logs for PHP parse errors or unexpected eval() failures that may indicate exploitation attempts
  • Set up alerts for new file creation events within WordPress wp-content directories
  • Implement egress filtering and monitor for unexpected outbound connections from web server processes

How to Mitigate CVE-2026-4001

Immediate Actions Required

  • Disable custom pricing formulas on all WCPA Pro addon fields by changing pricingType from "custom" to standard pricing options
  • If custom pricing is essential, remove the vulnerable plugin until a patched version is available
  • Review WordPress installations for signs of compromise including new user accounts, modified files, or suspicious scheduled tasks
  • Implement WAF rules to block requests containing PHP code injection patterns targeting product addon fields

Patch Information

As of the last update on 2026-03-24, users should check the ACOWebs Product Addons page for the latest security updates. Refer to the Wordfence Vulnerability Report for detailed vulnerability intelligence and patch availability notifications. When an update becomes available, test in a staging environment before applying to production, and verify that the patch properly addresses the eval() injection vulnerability by implementing proper input validation or replacing eval() with a secure expression parser.

Workarounds

  • Disable the custom pricing formula feature entirely by not using pricingType: "custom" configuration in product addon settings
  • Use percentage-based or fixed-price addon configurations instead of formula-based pricing
  • Implement server-level input filtering using ModSecurity or similar WAF with rules blocking PHP function names and code patterns in POST data
  • Restrict plugin functionality to authenticated administrators only by implementing additional access controls at the server level
bash
# ModSecurity rule to block potential eval() injection attempts
SecRule ARGS "@rx (?:eval|exec|system|passthru|shell_exec|phpinfo)\s*\(" \
    "id:100001,phase:2,deny,status:403,log,msg:'Potential PHP code injection blocked'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWoocommerce

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-95
  • Technical References
  • ACOWebs Product Addons Overview

  • Wordfence Vulnerability Report #70a2b6ff
  • Related CVEs
  • CVE-2026-2296: WooCommerce Product Addons RCE Vulnerability

  • CVE-2025-13773: WooCommerce Delivery Notes RCE Vulnerability

  • CVE-2025-13329: WooCommerce File Uploader RCE Vulnerability

  • CVE-2025-6440: WooCommerce Designer Pro RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English