CVE-2026-4080: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in zeshanb Easy Cart
The Easy Cart WordPress plugin contains a stored cross-site scripting (XSS) vulnerability in its 'add_to_cart' shortcode in all versions up to and including 1.8. This occurs because user-supplied shortcode attributes are sanitized with sanitize_text_field(), which does not escape double quotes, allowing injection of arbitrary event handlers. Authenticated users with Contributor-level access or higher can exploit this to inject malicious scripts that execute when other users view the affected pages.
AI Analysis
Technical Summary
CVE-2026-4080 is a stored cross-site scripting vulnerability in the Easy Cart WordPress plugin by zeshanb. The vulnerability arises from insufficient sanitization and escaping of user input in the ectp_add_to_cart() function, which processes shortcode attributes such as 'itemid', 'product_name', 'product_desc', 'product_qty', and 'price'. Although sanitize_text_field() is used, it does not escape double quote characters, enabling attackers to break out of HTML attribute contexts and inject arbitrary JavaScript event handlers. This flaw allows authenticated users with Contributor or higher privileges to inject persistent scripts that execute in the context of any user viewing the compromised page.
Potential Impact
An attacker with Contributor-level or higher access can inject malicious scripts into pages via the vulnerable shortcode attributes. These scripts execute whenever any user accesses the infected page, potentially leading to session hijacking, privilege escalation, or other client-side attacks. The vulnerability impacts confidentiality and integrity but does not affect availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict Contributor-level access to trusted users only and consider disabling or removing the Easy Cart plugin if possible. Monitor for updates from the vendor regarding an official fix.
CVE-2026-4080: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in zeshanb Easy Cart
Description
The Easy Cart WordPress plugin contains a stored cross-site scripting (XSS) vulnerability in its 'add_to_cart' shortcode in all versions up to and including 1.8. This occurs because user-supplied shortcode attributes are sanitized with sanitize_text_field(), which does not escape double quotes, allowing injection of arbitrary event handlers. Authenticated users with Contributor-level access or higher can exploit this to inject malicious scripts that execute when other users view the affected pages.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-4080 is a stored cross-site scripting vulnerability in the Easy Cart WordPress plugin by zeshanb. The vulnerability arises from insufficient sanitization and escaping of user input in the ectp_add_to_cart() function, which processes shortcode attributes such as 'itemid', 'product_name', 'product_desc', 'product_qty', and 'price'. Although sanitize_text_field() is used, it does not escape double quote characters, enabling attackers to break out of HTML attribute contexts and inject arbitrary JavaScript event handlers. This flaw allows authenticated users with Contributor or higher privileges to inject persistent scripts that execute in the context of any user viewing the compromised page.
Potential Impact
An attacker with Contributor-level or higher access can inject malicious scripts into pages via the vulnerable shortcode attributes. These scripts execute whenever any user accesses the infected page, potentially leading to session hijacking, privilege escalation, or other client-side attacks. The vulnerability impacts confidentiality and integrity but does not affect availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict Contributor-level access to trusted users only and consider disabling or removing the Easy Cart plugin if possible. Monitor for updates from the vendor regarding an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-12T20:44:26.013Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1e9560e29bf47b50adbe76
Added to database: 06/02/2026, 08:33:36 UTC
Last enriched: 06/09/2026, 09:53:37 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.