CVE-2024-53386
Stage.js DOM Clobbering XSS
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.
INFO
Published Date :
March 3, 2025, 7:15 a.m.
Last Modified :
June 27, 2025, 1:01 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update Stage.js to the latest version.
- Ensure untrusted input is properly sanitized.
- Review DOM manipulation for potential shadowing.
Public PoC/Exploit Available at Github
CVE-2024-53386 has a 1 public
PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-53386
.
URL | Resource |
---|---|
https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 | Exploit Third Party Advisory |
https://github.com/piqnt/stage.js/blob/919f6e94b14242f6e6994141a9e1188439d306d5/lib/core.js#L158-L159 | Product |
https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 | Exploit Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-53386
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-53386
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
A collection of client-side libraries with HTML injection vulnerabilities and DOM clobbering gadgets.
Python JavaScript HTML CSS Shell Classic ASP Java C# ASP.NET PHP
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-53386
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-53386
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 27, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Added CWE CWE-79 Added CPE Configuration OR *cpe:2.3:a:piqnt:stage.js:*:*:*:*:*:*:*:* versions up to (including) 0.8.10 Added Reference Type CISA-ADP: https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 Types: Exploit, Third Party Advisory Added Reference Type MITRE: https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 Types: Exploit, Third Party Advisory Added Reference Type MITRE: https://github.com/piqnt/stage.js/blob/919f6e94b14242f6e6994141a9e1188439d306d5/lib/core.js#L158-L159 Types: Product -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Mar. 03, 2025
Action Type Old Value New Value Added Reference https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 -
New CVE Received by [email protected]
Mar. 03, 2025
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N Added CWE CWE-94 Added Reference https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534 Added Reference https://github.com/piqnt/stage.js/blob/919f6e94b14242f6e6994141a9e1188439d306d5/lib/core.js#L158-L159