CVE-2026-4080: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in zeshanb Easy Cart
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.
AI Analysis
Technical Summary
CVE-2026-4080 is a stored cross-site scripting vulnerability in the Easy Cart WordPress plugin caused by improper neutralization of input during web page generation (CWE-79). The vulnerability arises because the ectp_add_to_cart() function sanitizes user-supplied shortcode attributes using sanitize_text_field(), which removes HTML tags but does not escape double quotes. This allows an attacker with Contributor-level privileges or higher to inject arbitrary JavaScript by breaking out of HTML attribute contexts in the 'add_to_cart' shortcode. The injected scripts execute in the context of any user visiting the compromised page, potentially leading to session hijacking or other script-based attacks. The CVSS 3.1 base score is 6.4 (medium severity), with network attack vector, low attack complexity, requiring privileges, no user interaction, and partial impact on confidentiality and integrity.
Potential Impact
An authenticated attacker with Contributor-level access or higher can inject persistent malicious scripts into pages using the vulnerable shortcode. These scripts execute in the browsers of users who visit the affected pages, potentially compromising user sessions or performing unauthorized actions within the context of the victim's browser. The impact is limited to confidentiality and integrity with no availability impact. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only and consider disabling or removing the Easy Cart plugin if possible. Avoid using the 'add_to_cart' shortcode with untrusted input. Monitor for vendor updates regarding patches or official mitigations.
CVE-2026-4080: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in zeshanb Easy Cart
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.
CVSS v3.1
Score 6.4medium
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 caused by improper neutralization of input during web page generation (CWE-79). The vulnerability arises because the ectp_add_to_cart() function sanitizes user-supplied shortcode attributes using sanitize_text_field(), which removes HTML tags but does not escape double quotes. This allows an attacker with Contributor-level privileges or higher to inject arbitrary JavaScript by breaking out of HTML attribute contexts in the 'add_to_cart' shortcode. The injected scripts execute in the context of any user visiting the compromised page, potentially leading to session hijacking or other script-based attacks. The CVSS 3.1 base score is 6.4 (medium severity), with network attack vector, low attack complexity, requiring privileges, no user interaction, and partial impact on confidentiality and integrity.
Potential Impact
An authenticated attacker with Contributor-level access or higher can inject persistent malicious scripts into pages using the vulnerable shortcode. These scripts execute in the browsers of users who visit the affected pages, potentially compromising user sessions or performing unauthorized actions within the context of the victim's browser. The impact is limited to confidentiality and integrity with no availability impact. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only and consider disabling or removing the Easy Cart plugin if possible. Avoid using the 'add_to_cart' shortcode with untrusted input. Monitor for vendor updates regarding patches or official mitigations.
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: 6/2/2026, 8:33:36 AM
Last enriched: 6/2/2026, 9:03:56 AM
Last updated: 6/3/2026, 5:02:46 AM
Views: 7
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.