CWE
94 79
Advisory Published
Advisory Published
Updated

CVE-2024-53382: Code Injection

First published: Mon Mar 03 2025(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PrismJS<1.29.0
npm/prismjs<1.30.0
1.30.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-53382?

    CVE-2024-53382 has a high severity rating due to its potential for causing DOM Clobbering and XSS vulnerabilities.

  • How do I fix CVE-2024-53382?

    To fix CVE-2024-53382, update PrismJS to version 1.29.1 or later, which addresses the vulnerability.

  • What types of attacks are possible with CVE-2024-53382?

    CVE-2024-53382 can be exploited to perform attackers' XSS attacks through untrusted input containing injected HTML.

  • Which versions of PrismJS are affected by CVE-2024-53382?

    CVE-2024-53382 affects all versions of PrismJS up to and including 1.29.0.

  • What is DOM Clobbering in relation to CVE-2024-53382?

    DOM Clobbering in CVE-2024-53382 refers to the manipulation of the document structure leading to unintended behavior and potential security risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203