Skip to content
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

react-syntax-highlighter-15.5.0.tgz: 1 vulnerabilities (highest severity is: 4.9) #17

Open
mend-for-jackfan.us.kg bot opened this issue Mar 3, 2025 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-jackfan.us.kg
Copy link

Vulnerable Library - react-syntax-highlighter-15.5.0.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/refractor/node_modules/prismjs/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (react-syntax-highlighter version) Remediation Possible** Reachability
CVE-2024-53382 Medium 4.9 detected in multiple dependencies Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-53382

Vulnerable Libraries - prismjs-1.28.0.tgz, prismjs-1.27.0.tgz

prismjs-1.28.0.tgz

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

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

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/prismjs/package.json

Dependency Hierarchy:

  • react-syntax-highlighter-15.5.0.tgz (Root Library)
    • prismjs-1.28.0.tgz (Vulnerable Library)

prismjs-1.27.0.tgz

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

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

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/refractor/node_modules/prismjs/package.json

Dependency Hierarchy:

  • react-syntax-highlighter-15.5.0.tgz (Root Library)
    • refractor-3.6.0.tgz
      • prismjs-1.27.0.tgz (Vulnerable Library)

Found in base branch: master

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-jackfan.us.kg mend-for-jackfan.us.kg bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Mar 3, 2025
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

0 participants