Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 87%

CVE-2026-4080: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in zeshanb Easy Cart

0
Medium
VulnerabilityCVE-2026-4080cvecve-2026-4080cwe-79
Published: Tue Jun 02 2026 (06/02/2026, 07:48:30 UTC)
Source: CVE Database V5
Vendor/Project: zeshanb
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/02/2026, 09:03:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses