astro-tech-blog icon indicating copy to clipboard operation
astro-tech-blog copied to clipboard

astro-5.7.14.tgz: 1 vulnerabilities (highest severity is: 4.9)

Open mend-bolt-for-github[bot] opened this issue 6 months ago • 0 comments

Vulnerable Library - astro-5.7.14.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Found in HEAD commit: d23ef66f4f9b4bbe330106cf12d0246244236b16

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (astro version) Remediation Possible**
CVE-2024-53382 Medium 4.9 prismjs-1.29.0.tgz 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 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:

  • astro-5.7.14.tgz (Root Library)
    • markdown-remark-6.3.1.tgz
      • prism-3.2.0.tgz
        • :x: prismjs-1.29.0.tgz (Vulnerable Library)

Found in HEAD commit: d23ef66f4f9b4bbe330106cf12d0246244236b16

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

Step up your Open Source Security Game with Mend here