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-scripts-5.0.1.tgz: 5 vulnerabilities (highest severity is: 9.3) #34

Open
mend-bolt-for-github bot opened this issue Jun 20, 2024 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-bolt-for-github
Copy link

mend-bolt-for-github bot commented Jun 20, 2024

Vulnerable Library - react-scripts-5.0.1.tgz

Path to dependency file: /client/package.json

Path to vulnerable library: /client/node_modules/@babel/traverse/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (react-scripts version) Remediation Possible**
CVE-2023-45133 Critical 9.3 traverse-7.20.12.tgz Transitive N/A*
CVE-2024-4068 High 7.5 braces-3.0.2.tgz Transitive N/A*
CVE-2021-3803 High 7.5 nth-check-1.0.2.tgz Transitive N/A*
CVE-2024-11831 Medium 5.4 serialize-javascript-4.0.0.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-2023-45133

Vulnerable Library - traverse-7.20.12.tgz

Library home page: https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz

Path to dependency file: /client/package.json

Path to vulnerable library: /client/node_modules/@babel/traverse/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • core-7.20.12.tgz
      • traverse-7.20.12.tgz (Vulnerable Library)

Found in base branch: develop

Vulnerability Details

Babel is a compiler for writingJavaScript. In @babel/traverse prior to versions 7.23.2 and 8.0.0-alpha.4 and all versions of babel-traverse, using Babel to compile code that was specifically crafted by an attacker can lead to arbitrary code execution during compilation, when using plugins that rely on the path.evaluate()or path.evaluateTruthy() internal Babel methods. Known affected plugins are @babel/plugin-transform-runtime; @babel/preset-env when using its useBuiltIns option; and any "polyfill provider" plugin that depends on @babel/helper-define-polyfill-provider, such as babel-plugin-polyfill-corejs3, babel-plugin-polyfill-corejs2, babel-plugin-polyfill-es-shims, babel-plugin-polyfill-regenerator. No other plugins under the @babel/ namespace are impacted, but third-party plugins might be. Users that only compile trusted code are not impacted. The vulnerability has been fixed in @babel/[email protected] and @babel/[email protected]. Those who cannot upgrade @babel/traverse and are using one of the affected packages mentioned above should upgrade them to their latest version to avoid triggering the vulnerable code path in affected @babel/traverse versions: @babel/plugin-transform-runtime v7.23.2, @babel/preset-env v7.23.2, @babel/helper-define-polyfill-provider v0.4.3, babel-plugin-polyfill-corejs2 v0.4.6, babel-plugin-polyfill-corejs3 v0.8.5, babel-plugin-polyfill-es-shims v0.10.0, babel-plugin-polyfill-regenerator v0.5.3.

Publish Date: 2023-10-12

URL: CVE-2023-45133

CVSS 3 Score Details (9.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-67hx-6x53-jw92

Release Date: 2023-10-12

Fix Resolution: @babel/traverse - 7.23.2

Step up your Open Source Security Game with Mend here

CVE-2024-4068

Vulnerable Library - braces-3.0.2.tgz

Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.

Library home page: https://registry.npmjs.org/braces/-/braces-3.0.2.tgz

Path to dependency file: /client/package.json

Path to vulnerable library: /client/node_modules/braces/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • tailwindcss-3.4.17.tgz
      • chokidar-3.6.0.tgz
        • braces-3.0.2.tgz (Vulnerable Library)

Found in base branch: develop

Vulnerability Details

The NPM package braces, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In lib/parse.js, if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
Mend Note: After conducting a further research, it was concluded that CVE-2024-4068 does not contain a high security risk that reflects the NVD score, but should be kept for users' awareness. Users of braces should follow the fix recommendation as noted.

Publish Date: 2024-05-13

URL: CVE-2024-4068

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

Release Date: 2024-05-13

Fix Resolution: braces - 3.0.3

Step up your Open Source Security Game with Mend here

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: /client/package.json

Path to vulnerable library: /client/node_modules/svgo/node_modules/nth-check/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 base branch: develop

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

Release Date: 2021-09-17

Fix Resolution: nth-check - v2.0.1

Step up your Open Source Security Game with Mend here

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: /client/package.json

Path to vulnerable library: /client/node_modules/rollup-plugin-terser/node_modules/serialize-javascript/package.json

Dependency Hierarchy:

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

Found in base branch: develop

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

Step up your Open Source Security Game with Mend here

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: /client/package.json

Path to vulnerable library: /client/node_modules/resolve-url-loader/node_modules/postcss/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 base branch: develop

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

Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jun 20, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 10 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 11 vulnerabilities (highest severity is: 9.8) Jul 2, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 11 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 10 vulnerabilities (highest severity is: 9.8) Jul 30, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 10 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 11 vulnerabilities (highest severity is: 9.8) Aug 28, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 11 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 12 vulnerabilities (highest severity is: 9.8) Sep 11, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 12 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 13 vulnerabilities (highest severity is: 9.8) Sep 15, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 13 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 15 vulnerabilities (highest severity is: 9.8) Sep 16, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 15 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 16 vulnerabilities (highest severity is: 9.8) Sep 24, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 16 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 17 vulnerabilities (highest severity is: 9.8) Oct 7, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 17 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 18 vulnerabilities (highest severity is: 9.8) Oct 20, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 18 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 16 vulnerabilities (highest severity is: 9.3) Oct 26, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 16 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 17 vulnerabilities (highest severity is: 9.3) Nov 11, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 17 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 18 vulnerabilities (highest severity is: 9.3) Nov 13, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 18 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 17 vulnerabilities (highest severity is: 9.3) Nov 19, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 17 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 18 vulnerabilities (highest severity is: 9.3) Dec 6, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 18 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 19 vulnerabilities (highest severity is: 9.3) Dec 9, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 19 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 4 vulnerabilities (highest severity is: 9.3) Jan 4, 2025
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 4 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 11 vulnerabilities (highest severity is: 9.3) Jan 6, 2025
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 11 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 4 vulnerabilities (highest severity is: 9.3) Jan 6, 2025
@mend-bolt-for-github mend-bolt-for-github bot changed the title react-scripts-5.0.1.tgz: 4 vulnerabilities (highest severity is: 9.3) react-scripts-5.0.1.tgz: 5 vulnerabilities (highest severity is: 9.3) Feb 12, 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