ghsa-x7hr-w5r2-h6wg
Vulnerability from github
Published
2025-03-03 09:30
Modified
2025-06-30 12:51
Severity ?
Summary
PrismJS DOM Clobbering vulnerability
Details
Prism (aka PrismJS) through 1.29.0 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.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "prismjs" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.30.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-53382" ], "database_specific": { "cwe_ids": [ "CWE-79", "CWE-94" ], "github_reviewed": true, "github_reviewed_at": "2025-03-03T20:16:32Z", "nvd_published_at": "2025-03-03T07:15:33Z", "severity": "MODERATE" }, "details": "Prism (aka PrismJS) through 1.29.0 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.", "id": "GHSA-x7hr-w5r2-h6wg", "modified": "2025-06-30T12:51:19Z", "published": "2025-03-03T09:30:34Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-53382" }, { "type": "WEB", "url": "https://github.com/PrismJS/prism/pull/3863" }, { "type": "WEB", "url": "https://github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d" }, { "type": "WEB", "url": "https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660" }, { "type": "PACKAGE", "url": "https://github.com/PrismJS/prism" }, { "type": "WEB", "url": "https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "PrismJS DOM Clobbering vulnerability" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.