Skip to content

react-2.4.8.tgz: 3 vulnerabilities (highest severity is: 7.5) #9

@mend-bolt-for-github

Description

@mend-bolt-for-github
Vulnerable Library - react-2.4.8.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (react version) Remediation Possible**
CVE-2024-21538 High 7.5 cross-spawn-7.0.3.tgz Transitive N/A*
CVE-2025-27789 Medium 6.2 runtime-7.25.6.tgz Transitive N/A*
CVE-2024-55565 Medium 4.3 nanoid-3.3.7.tgz Transitive 2.6.0

*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-21538

Vulnerable Library - cross-spawn-7.0.3.tgz

Cross platform child_process#spawn and child_process#spawnSync

Library home page: https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/package.json

Dependency Hierarchy:

  • react-2.4.8.tgz (Root Library)
    • theme-2.2.11.tgz
      • tailwindcss-3.4.13.tgz
        • sucrase-3.35.0.tgz
          • glob-10.4.5.tgz
            • foreground-child-3.3.0.tgz
              • cross-spawn-7.0.3.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

Publish Date: 2024-11-08

URL: CVE-2024-21538

CVSS 3 Score Details (7.5)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-21538

Release Date: 2024-11-08

Fix Resolution: cross-spawn - 7.0.5

Step up your Open Source Security Game with Mend here

CVE-2025-27789

Vulnerable Library - runtime-7.25.6.tgz

babel's modular runtime helpers

Library home page: https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.6.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/.pnpm/@babel+runtime@7.25.6/node_modules/@babel/runtime/package.json

Dependency Hierarchy:

  • react-2.4.8.tgz (Root Library)
    • input-2.2.5.tgz
      • react-textarea-autosize-8.5.3.tgz
        • runtime-7.25.6.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Babel is a compiler for writing next generation JavaScript. When using versions of Babel prior to 7.26.10 and 8.0.0-alpha.17 to compile regular expression named capturing groups, Babel will generate a polyfill for the ".replace" method that has quadratic complexity on some specific replacement pattern strings (i.e. the second argument passed to ".replace"). Generated code is vulnerable if all the following conditions are true: Using Babel to compile regular expression named capturing groups, using the ".replace" method on a regular expression that contains named capturing groups, and the code using untrusted strings as the second argument of ".replace". This problem has been fixed in "@babel/helpers" and "@babel/runtime" 7.26.10 and 8.0.0-alpha.17. It's likely that individual users do not directly depend on "@babel/helpers", and instead depend on "@babel/core" (which itself depends on "@babel/helpers"). Upgrading to "@babel/core" 7.26.10 is not required, but it guarantees use of a new enough "@babel/helpers" version. Note that just updating Babel dependencies is not enough; one will also need to re-compile the code. No known workarounds are available.

Publish Date: 2025-03-11

URL: CVE-2025-27789

CVSS 3 Score Details (6.2)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Step up your Open Source Security Game with Mend here

CVE-2024-55565

Vulnerable Library - nanoid-3.3.7.tgz

Library home page: https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/.pnpm/nanoid@3.3.7/node_modules/nanoid/package.json

Dependency Hierarchy:

  • react-2.4.8.tgz (Root Library)
    • theme-2.2.11.tgz
      • tailwindcss-3.4.13.tgz
        • postcss-8.4.47.tgz
          • nanoid-3.3.7.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

nanoid (aka Nano ID) before 5.0.9 mishandles non-integer values. 3.3.8 is also a fixed version.

Publish Date: 2024-12-09

URL: CVE-2024-55565

CVSS 3 Score Details (4.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-55565

Release Date: 2024-12-09

Fix Resolution (nanoid): 3.3.8

Direct dependency fix Resolution (@nextui-org/react): 2.6.0

Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions