Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft search/input with javascript: anchor
-
DeliveryPayload stored in GUI error message
-
ExploitVictim views or clicks rendered anchor
-
ExecutionJavaScript runs in victim session
-
ImpactSteal session or perform unauthorized actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that attacker-controlled data (e.g. search terms or other input) reaches a GUI error, information, or warning message rendered by _errorMessage() in classes/gui.class.php on any CubeCart instance prior to 6.7.5 - the default behavior, no non-standard configuration needed. The limiting factor is user interaction (UI:R): a victim must view the page containing the injected anchor or click it (for javascript: href variants), and the executed script is confined to that victim's browser session. Impact is greatest when the viewer is an authenticated admin/staff member, but any authenticated shopper session can be abused. No attacker authentication is required (PR:N). |
| Impact | Signals are moderate and consistent. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N = 6.1) describes a classic reflected/stored cross-site scripting flaw: network-reachable, low-complexity, no privileges, but requiring victim interaction (viewing or clicking the rendered anchor), with a scope change (script runs in the victim's browser context) and low confidentiality/integrity impact. A public exploit is available (Exploit-DB 52661), which raises practical risk above a theoretical XSS, but there is NO CISA KEV listing and NO EPSS score provided, so there is no evidence of active, widespread exploitation - POC availability and active exploitation are distinct signals. This is a genuine, patchable web-app bug worth prioritizing on CubeCart deployments (especially admin/staff who view attacker-influenced error messages), but it is not a critical drop-everything issue: impact is session/action hijack scoped to browser context, not server RCE. No conflicting signals were detected; the description (javascript: URI / onclick surviving strip_tags) fully corroborates the CWE-79 classification and the source-code diff confirms the root cause and fix. |
| Exploit ScenarioDerived | An attacker submits crafted search or input data containing an anchor with a javascript: href or onclick handler that CubeCart's _errorMessage() passes through strip_tags($text,'<a>') into an error, information, or warning banner. When a victim (shopper or admin) views the page or clicks the malicious link, JavaScript executes in their authenticated session, enabling session/cookie exposure or unauthorized in-app actions. A public proof-of-concept exists (Exploit-DB 52661), and exploitation only needs the victim to view/interact with the rendered message (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Reflected cross-site scripting in CubeCart versions prior to 6.7.5 allows unauthenticated remote attackers to execute JavaScript in a victim's browser session by injecting data that reaches GUI error, information, or warning messages rendered by the _errorMessage() method in classes/gui.class.php. That method calls strip_tags($text, '<a>'), which keeps anchor tags while leaving their href values and event handlers intact, so a javascript: URI or an onclick attribute supplied through search fields or other input survives filtering and fires when the victim views or clicks the rendered link, exposing session data or triggering unauthorized application actions. Exploitation requires user interaction (the victim must view or click the crafted link) and affects any CubeCart instance running a release older than 6.7.5; publicly available exploit code exists (Exploit-DB 52661), and the vendor addressed the flaw in 6.7.5.
RemediationAI
Upgrade CubeCart to version 6.7.5 or later, which is the vendor-released patch that resolves this issue; the fix is contained in the upstream commit https://github.com/cubecart/v6/commit/7c4c0081fd346578a95738f480ef647116ee1c82 and documented in advisory GHSA-v55x-fh73-29vq and the 6.7.5 release notes at https://github.com/cubecart/v6/blob/6.7.5/admin/sources/release_notes/6.7.5.inc.php. If an immediate upgrade is not possible, backport the _sanitizeAnchors() helper and its two call sites from that commit into classes/gui.class.php so that only href attributes with http, https, mailto, or relative schemes are preserved and all event handlers are discarded - this is a targeted, low-risk change but it must be re-applied after any future upgrade or file overwrite. A temporary compensating control is to deploy a WAF rule that blocks requests containing javascript: or on\w+= attribute patterns in query parameters that are echoed back into GUI messages, accepting that obfuscation variants may bypass it and that legitimate rich content could be rejected. Because the root trigger is user-supplied input reaching the message renderer, administrators should also review any templates or custom modules that echo request data directly and escape it with htmlspecialchars(). Deploying a strict Content-Security-Policy without 'unsafe-inline' will neutralize inline event-handler payloads in modern browsers but will not stop javascript: navigation without additional directives and may break storefront themes that rely on inline scripts. Finally, limiting admin and staff panel access to trusted networks reduces the value of the highest-impact target, since the injected script executes with the viewer's privileges. Note that publicly available exploit code exists for this flaw, so treating unpatched storefronts as exposed is warranted.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CubeCart is a PHP-based ecommerce platform, and this is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) failure rooted in an incomplete sanitization primitive rather than in missing output encoding. The vulnerable code passes user-influenced message text through strip_tags() with an explicit '<a>' allowlist, a function that removes disallowed tags but performs no attribute-level filtering; any attributes retained on the permitted anchor - including href="javascript:..." and inline event handlers such as onclick - remain intact. The injected payload therefore becomes part of the server-generated HTML of an error, information, or warning banner, and the browser executes it in the origin of the storefront or admin panel. The upstream fix introduces a private _sanitizeAnchors() helper invoked after strip_tags(); it uses preg_replace_callback() to rebuild each anchor tag, decoding the href, stripping control/whitespace characters that could obfuscate a scheme, and permitting only http, https, mailto, and relative links while dropping every other attribute. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N reflects network reachability with no attacker authentication, a user-interaction prerequisite, and a scope change (S:C) because scripts execute in the victim's session context rather than the attacker's, with limited confidentiality and integrity impact and no availability impact. No CPE identifiers were included in the supplied intelligence; the affected component is identified by the exact file path classes/gui.class.php in the CubeCart v6 codebase. The tags PHP and XSS confirm the technology stack and vulnerability class, and the authoritative independent assessment aligns with the NVD vector and with the commit diff showing the pre-fix strip_tags() behavior at lines surrounding 1796.
Know when Cubecart gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Unauthenticated network-delivered XSS (PR:N/AV:N/AC:L) requiring victim view/click (UI:R); script executes in browser context (S:C) with low confidentiality/integrity impact and no availability effect.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
CubeCart is an ecommerce software solution. Prior to 6.7.5, the _errorMessage method in classes/gui.class.php uses strip_tags to permit anchor elements in error, information, and warning messages while retaining unsafe href values and onclick event handlers. Attacker-controlled search or input data that reaches a GUI message can carry a javascript: URI or event handler through the filter, and viewing or interacting with the rendered anchor executes JavaScript in the victim's browser session, enabling session exposure or unauthorized application actions. This issue is fixed in version 6.7.5.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
The Cubecart::_basket method in classes/cubecart.class.php in CubeCart 5.0.0 through 5.2.0 allows remote attackers to un
Directory Traversal vulnerability in CubeCart v.6.5.5 and before allows an attacker to execute arbitrary code via a craf
Multiple open redirect vulnerabilities in CubeCart 3.0.20 and earlier allow remote attackers to redirect users to arbitr
File Upload vulnerability in CubeCart before 6.5.5 allows an authenticated user to execute arbitrary code via a crafted
Session fixation vulnerability in CubeCart before 5.2.9 allows remote attackers to hijack web sessions via the PHPSESSID
Authenticated SQL injection in CubeCart before 6.7.5 allows an administrator with access to the admin settings page to m
classes/admin.class.php in CubeCart 5.2.12 through 5.2.16 and 6.x before 6.0.7 does not properly validate that a passwor
CubeCart is an ecommerce software solution. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable
Reflected XSS in CubeCart v6 (prior to 6.7.0) enables unauthenticated remote attackers to execute arbitrary JavaScript i
CubeCart is an ecommerce software solution. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable
CubeCart is an ecommerce software solution. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable
Cubecart 6.4.2 allows Session Fixation. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, lo
EUVD-2026-82529
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB
GitHub
VulDB