CVE-2024-53386 Details
Description
Stage.js through 0.8.10 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.
A DOM clobbering vulnerability has been identified in Stage.js versions through 0.8.10. This issue allows for cross-site scripting (XSS) attacks in scenarios where untrusted input containing HTML, but not JavaScript, is processed. The vulnerability arises because the library's use of 'document.currentScript' can be manipulated by injecting HTML elements, such as an image tag with a name attribute, which then shadows the original script context. This exploitation can redirect script loading to an attacker's server.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 | CISA-ADP | ExploitThird Party Advisory |
| https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 | [email protected] | ExploitThird Party Advisory |
| https://github.com/piqnt/stage.js/blob/919f6e94b14242f6e6994141a9e1188439d306d5/lib/core.js#L158-L159 | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| piqnt stage.js | <= 0.8.10 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 27, 2025 | Initial Analysis | [email protected] |
| Mar 3, 2025 | CVE Modified | CISA-ADP |
| Mar 3, 2025 | New CVE Received | [email protected] |