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

- Severity: Critical 9.8 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-01)
- Published: 2026-03-23T23:25:48.659Z
- Modified: 2026-06-17T10:55:50.020Z
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Wordfence

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

(As written by CVE List.)

## Affected

- acowebs Woocommerce Custom Product Addons Pro: up to 5.4.1

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/70a2b6ff-defc-4722-9af9-3cae94e98632?source=cve>
- <https://acowebs.com/woo-custom-product-addons/>

## Sources

- CVE List: [CVE-2026-4001](https://www.cve.org/CVERecord?id=CVE-2026-4001), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2026-4001](https://nvd.nist.gov/vuln/detail/CVE-2026-4001), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-4001 · Whole record: https://cve.day/CVE-2026-4001.json · Rebuilt by cve.day 2026-11-25T22:59:16.518Z
