GHSA-x7hr-w5r2-h6wg

Suggest an improvement
Source
https://github.com/advisories/GHSA-x7hr-w5r2-h6wg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-x7hr-w5r2-h6wg/GHSA-x7hr-w5r2-h6wg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x7hr-w5r2-h6wg
Aliases
Published
2025-03-03T09:30:34Z
Modified
2025-03-10T22:19:21Z
Severity
  • 4.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-03-03T07:15:33Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-03T20:16:32Z"
}
References

Affected packages

npm / prismjs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.30.0