Skip to content

react-scripts-5.0.1.tgz: 5 vulnerabilities (highest severity is: 7.5) #3123

@e-tools-mend-production

Description

@e-tools-mend-production
Vulnerable Library - react-scripts-5.0.1.tgz

Path to dependency file: /react-workspace/test-react-v19/package.json

Path to vulnerable library: /react-workspace/test-web-components/package.json,/react-workspace/test-react-v19/package.json,/react-workspace/test-react-v18/package.json

Found in HEAD commit: c67ed1db1039304e347beccda3cc57739b39aba8

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (react-scripts version) Remediation Possible**
CVE-2021-3803 High 7.5 nth-check-1.0.2.tgz Transitive N/A*
CVE-2025-30360 Medium 6.5 webpack-dev-server-4.15.2.tgz Transitive N/A*
CVE-2024-11831 Medium 5.4 serialize-javascript-4.0.0.tgz Transitive N/A*
CVE-2025-30359 Medium 5.3 webpack-dev-server-4.15.2.tgz Transitive N/A*
CVE-2023-44270 Medium 5.3 postcss-7.0.39.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-2021-3803

Vulnerable Library - nth-check-1.0.2.tgz

performant nth-check parser & compiler

Library home page: https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz

Path to dependency file: /react-workspace/test-react-v18/package.json

Path to vulnerable library: /react-workspace/test-react-v18/package.json,/react-workspace/test-react-v19/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-5.5.0.tgz
      • plugin-svgo-5.5.0.tgz
        • svgo-1.3.2.tgz
          • css-select-2.1.0.tgz
            • nth-check-1.0.2.tgz (Vulnerable Library)

Found in HEAD commit: c67ed1db1039304e347beccda3cc57739b39aba8

Found in base branch: main

Vulnerability Details

nth-check is vulnerable to Inefficient Regular Expression Complexity

Publish Date: 2021-09-17

URL: CVE-2021-3803

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: fb55/nth-check@v2.0.0...v2.0.1

Release Date: 2021-09-17

Fix Resolution: nth-check - v2.0.1

CVE-2025-30360

Vulnerable Library - webpack-dev-server-4.15.2.tgz

Library home page: https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.2.tgz

Path to dependency file: /react-workspace/test-web-components/package.json

Path to vulnerable library: /react-workspace/test-web-components/package.json,/react-workspace/test-react-v19/package.json,/react-workspace/test-react-v18/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.15.2.tgz (Vulnerable Library)

Found in HEAD commit: c67ed1db1039304e347beccda3cc57739b39aba8

Found in base branch: main

Vulnerability Details

webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when you access a malicious web site with non-Chromium based browser. The "Origin" header is checked to prevent Cross-site WebSocket hijacking from happening, which was reported by CVE-2018-14732. But webpack-dev-server always allows IP address "Origin" headers. This allows websites that are served on IP addresses to connect WebSocket. An attacker can obtain source code via a method similar to that used to exploit CVE-2018-14732. Version 5.2.1 contains a patch for the issue.

Publish Date: 2025-06-03

URL: CVE-2025-30360

CVSS 3 Score Details (6.5)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-9jgg-88mc-972h

Release Date: 2025-06-03

Fix Resolution: https://github.com/webpack/webpack-dev-server.git - v5.2.1

CVE-2024-11831

Vulnerable Library - serialize-javascript-4.0.0.tgz

Serialize JavaScript to a superset of JSON that includes regular expressions and functions.

Library home page: https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz

Path to dependency file: /react-workspace/test-react-v18/package.json

Path to vulnerable library: /react-workspace/test-react-v18/package.json,/react-workspace/test-react-v19/package.json,/react-workspace/test-web-components/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • workbox-webpack-plugin-6.6.0.tgz
      • workbox-build-6.6.0.tgz
        • rollup-plugin-terser-7.0.2.tgz
          • serialize-javascript-4.0.0.tgz (Vulnerable Library)

Found in HEAD commit: c67ed1db1039304e347beccda3cc57739b39aba8

Found in base branch: main

Vulnerability Details

A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.

Publish Date: 2025-02-10

URL: CVE-2024-11831

CVSS 3 Score Details (5.4)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: Required
    • 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: GHSA-76p7-773f-r4q5

Release Date: 2025-02-10

Fix Resolution: serialize-javascript - 6.0.2

CVE-2025-30359

Vulnerable Library - webpack-dev-server-4.15.2.tgz

Library home page: https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.2.tgz

Path to dependency file: /react-workspace/test-web-components/package.json

Path to vulnerable library: /react-workspace/test-web-components/package.json,/react-workspace/test-react-v19/package.json,/react-workspace/test-react-v18/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.15.2.tgz (Vulnerable Library)

Found in HEAD commit: c67ed1db1039304e347beccda3cc57739b39aba8

Found in base branch: main

Vulnerability Details

webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when they access a malicious web site. Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject a malicious script in their site and run the script. Note that the attacker has to know the port and the output entrypoint script path. Combined with prototype pollution, the attacker can get a reference to the webpack runtime variables. By using "Function::toString" against the values in "webpack_modules", the attacker can get the source code. Version 5.2.1 contains a patch for the issue.

Publish Date: 2025-06-03

URL: CVE-2025-30359

CVSS 3 Score Details (5.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-4v9v-hfq4-rm2v

Release Date: 2025-06-03

Fix Resolution: webpack-dev-server - 5.2.1

CVE-2023-44270

Vulnerable Library - postcss-7.0.39.tgz

Tool for transforming styles with JS plugins

Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz

Path to dependency file: /react-workspace/test-react-v18/package.json

Path to vulnerable library: /react-workspace/test-react-v18/package.json,/react-workspace/test-react-v19/package.json,/react-workspace/test-web-components/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • resolve-url-loader-4.0.0.tgz
      • postcss-7.0.39.tgz (Vulnerable Library)

Found in HEAD commit: c67ed1db1039304e347beccda3cc57739b39aba8

Found in base branch: main

Vulnerability Details

An issue was discovered in PostCSS before 8.4.31. The vulnerability affects linters using PostCSS to parse external untrusted CSS. An attacker can prepare CSS in such a way that it will contains parts parsed by PostCSS as a CSS comment. After processing by PostCSS, it will be included in the PostCSS output in CSS nodes (rules, properties) despite being included in a comment.

Publish Date: 2023-09-29

URL: CVE-2023-44270

CVSS 3 Score Details (5.3)

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: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-7fh5-64p2-3v2j

Release Date: 2023-09-29

Fix Resolution: postcss - 8.4.31

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions