Skip to content

CVE-2024-53382 (Medium) detected in prismjs-1.29.0.tgz - autoclosed #2377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mend-for-g.yxqyang.asia bot opened this issue Mar 5, 2025 · 2 comments
Closed
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-g.yxqyang.asia
Copy link

mend-for-g.yxqyang.asia bot commented Mar 5, 2025

CVE-2024-53382 - Medium Severity Vulnerability

Vulnerable Library - prismjs-1.29.0.tgz

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

Library home page: https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • presentational-components-3.4.12.tgz (Root Library)
    • react-syntax-highlighter-15.5.0.tgz
      • prismjs-1.29.0.tgz (Vulnerable Library)

Found in HEAD commit: cd70e059a6d1616fe7bbe8dc2cc1157e59394deb

Found in base branch: main

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.

Publish Date: 2025-03-03

URL: CVE-2024-53382

CVSS 3 Score Details (4.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2024-53382

Release Date: 2025-03-03

Fix Resolution: prismjs - 9000.0.1

@mend-for-g.yxqyang.asia mend-for-g.yxqyang.asia bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Mar 5, 2025
@krisfreedain
Copy link
Member

Catch All Triage - 1 2

@mengweieric @joshuali925 - can you take a look at this?

@mend-for-g.yxqyang.asia mend-for-g.yxqyang.asia bot changed the title CVE-2024-53382 (Medium) detected in prismjs-1.29.0.tgz CVE-2024-53382 (Medium) detected in prismjs-1.29.0.tgz - autoclosed Apr 7, 2025
Copy link
Author

✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

1 participant