CVE-2026-4080 MEDIUM

CVE-2026-4080: Easy Cart <= 1.8 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes

Vendor Zeshanb
Product Easy Cart
Weakness CWE-79 · XSS
Published June 2, 2026
Last update June 2, 2026

CVSS base score

6.4/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Easy Cart versions 1.8 and earlier contain a cross-site scripting (XSS) vulnerability that allows authenticated users to inject malicious scripts affecting other users. The vulnerability has a changed scope, meaning the impact extends beyond the vulnerable component itself. Low-privileged accounts can exploit this without user interaction to compromise site integrity and confidentiality.

What an attacker can do

03Attacker Capabilities

Inject malicious scripts that execute in other users' browsers, potentially stealing data or performing actions on their behalf.

Potential impact on your site

04Site Impact

Authenticated users can inject scripts affecting other site visitors, risking data theft, session hijacking, or malware distribution.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privileged account on the site; no user interaction required from victims.

Key dates

06Disclosure timeline

June 2, 2026 CVE published
June 2, 2026 Record updated