CVE-2026-4080
6.4 MEDIUMThe Easy Cart plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'add_to_cart' shortcode in all versions up to and...
Published: 2026-06-02 · Last updated: 2026-06-02
Severity and scoring
- CVSS
- 6.4 MEDIUM
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- CWE
- CWE-79
Description
The Easy Cart plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'add_to_cart' shortcode in all versions up to and including 1.8. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. Specifically, the ectp_add_to_cart() function uses sanitize_text_field() on shortcode attributes like 'itemid', 'product_name', 'product_desc', 'product_qty', and 'price' before inserting them into double-quoted HTML attributes. While sanitize_text_field() strips HTML tags, it does not escape double quote characters, allowing an attacker to break out of the HTML attribute context and inject arbitrary event handlers. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-4080
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L263
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L280
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L283
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L284
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L285
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L286
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/tags/1.8/plugin.php#L287
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L263
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L280
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L283
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L284
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L285
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L286
- [Other]https://plugins.trac.wordpress.org/browser/easy-cart/trunk/plugin.php#L287
- [Other]https://www.wordfence.com/threat-intel/vulnerabilities/id/73615729-c32a-45f7-b2d8-5c978370e18c?source=cve
Related CVEs
Same CWE
- CVE-2026-12202 — A vulnerability has been found in Intelliants Subrion CMS up to 4.0.3 (2.4 LOW)
- CVE-2026-12176 — A vulnerability has been found in SourceCodester CET Automated Grading System with AI Predictive Analytics 1.0 (4.3 MEDIUM)
- CVE-2026-5513 — The Online Scheduling and Appointment Booking System – Bookly plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '... (7.2 HIGH)
- CVE-2026-9629 — The Canvas plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'tag' parameter in all versions up to, and including... (6.4 MEDIUM)
- CVE-2026-3297 — The Page Builder: Pagelayer – Drag and Drop website builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Anc... (6.4 MEDIUM)