CVE-2024-53382
Prismjs Prism vulnerability
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 products
Prism. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Prismjs Prism runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660 · Exploit
- github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259
- nvd.nist.gov/vuln/detail/CVE-2024-53382
- github.com/PrismJS/prism/pull/3863
- github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d
- github.com/advisories/GHSA-x7hr-w5r2-h6wg
- nvd.nist.gov/vuln/detail/CVE-2024-53382
- cve.org/CVERecord?id=CVE-2024-53382
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.