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: 31 vulnerabilities (highest severity is: 9.8) reachable #7

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

Comments

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

mend-for-jackfan.us.kg bot commented Aug 12, 2024

Vulnerable Library - react-scripts-5.0.1.tgz

Path to dependency file: /frontend/package.json

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

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (react-scripts version) Remediation Possible** Reachability
CVE-2024-45296 High 7.5 path-to-regexp-0.1.7.tgz Transitive N/A*

Reachable

CVE-2024-47764 Medium 5.3 cookie-0.5.0.tgz Transitive N/A*

Reachable

CVE-2024-43800 Medium 5.0 serve-static-1.15.0.tgz Transitive N/A*

Reachable

CVE-2024-43799 Medium 5.0 send-0.18.0.tgz Transitive N/A*

Reachable

CVE-2023-28154 Critical 9.8 webpack-5.73.0.tgz Transitive N/A*

Unreachable

CVE-2022-37601 Critical 9.8 loader-utils-2.0.2.tgz Transitive N/A*

Unreachable

CVE-2023-45133 Critical 9.3 traverse-7.18.2.tgz Transitive N/A*

Unreachable

CVE-2024-33883 High 8.8 ejs-3.1.8.tgz Transitive N/A*

Unreachable

CVE-2024-4068 High 7.5 braces-3.0.2.tgz Transitive N/A*

Unreachable

CVE-2024-37890 High 7.5 detected in multiple dependencies Transitive N/A*

Unreachable

CVE-2022-37603 High 7.5 detected in multiple dependencies Transitive N/A*

Unreachable

CVE-2022-37599 High 7.5 loader-utils-2.0.2.tgz Transitive N/A*

Unreachable

CVE-2022-3517 High 7.5 minimatch-3.0.4.tgz Transitive N/A*

Unreachable

CVE-2021-3803 High 7.5 nth-check-1.0.2.tgz Transitive N/A*

Unreachable

CVE-2024-29180 High 7.4 webpack-dev-middleware-5.3.3.tgz Transitive N/A*

Unreachable

CVE-2023-26159 High 7.3 follow-redirects-1.15.1.tgz Transitive N/A*

Unreachable

CVE-2022-46175 High 7.1 detected in multiple dependencies Transitive N/A*

Unreachable

CVE-2024-28849 Medium 6.5 follow-redirects-1.15.1.tgz Transitive N/A*

Unreachable

CVE-2023-26136 Medium 6.5 tough-cookie-4.0.0.tgz Transitive N/A*

Unreachable

CVE-2024-43788 Medium 6.4 webpack-5.73.0.tgz Transitive N/A*

Unreachable

CVE-2024-47068 Medium 6.1 rollup-2.75.5.tgz Transitive N/A*

Unreachable

CVE-2024-4067 Medium 5.3 micromatch-4.0.5.tgz Transitive N/A*

Unreachable

CVE-2023-44270 Medium 5.3 detected in multiple dependencies Transitive N/A*

Unreachable

CVE-2023-26115 Medium 5.3 word-wrap-1.2.3.tgz Transitive N/A*

Unreachable

CVE-2022-25883 Medium 5.3 detected in multiple dependencies Transitive N/A*

Unreachable

CVE-2022-25858 Medium 5.3 terser-5.14.0.tgz Transitive N/A*

Unreachable

CVE-2024-52798 High 7.5 path-to-regexp-0.1.7.tgz Transitive N/A*
CVE-2024-21538 High 7.5 cross-spawn-7.0.3.tgz Transitive N/A*
CVE-2024-21536 High 7.5 http-proxy-middleware-2.0.6.tgz Transitive N/A*
CVE-2024-11831 Medium 5.4 detected in multiple dependencies Transitive N/A*
CVE-2024-55565 Medium 4.3 nanoid-3.3.4.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

Partial details (18 vulnerabilities) are displayed below due to a content size limitation in GitHub. To view information on the remaining vulnerabilities, navigate to the Mend Application.

CVE-2024-45296

Vulnerable Library - path-to-regexp-0.1.7.tgz

Express style path to RegExp utility

Library home page: https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/path-to-regexp/package.json,/backend/node_modules/path-to-regexp/package.json,/frontend/node_modules/express/node_modules/path-to-regexp/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • express-4.18.1.tgz
        • path-to-regexp-0.1.7.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

damn-vulnerable-crypto-app-backend-1.0.0/src/middlewares/cspMiddleware.ts (Application)
  -> express-4.18.1/index.js (Extension)
   -> express-4.18.1/lib/express.js (Extension)
    -> express-4.18.1/lib/router/index.js (Extension)
     -> express-4.18.1/lib/router/layer.js (Extension)
      -> ❌ path-to-regexp-0.1.7/index.js (Vulnerable Component)

Vulnerability Details

path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.

Publish Date: 2024-09-09

URL: CVE-2024-45296

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: GHSA-9wv6-86v2-598j

Release Date: 2024-09-09

Fix Resolution: path-to-regexp - 0.1.10,1.9.0,3.3.0,6.3.0,8.0.0

CVE-2024-47764

Vulnerable Library - cookie-0.5.0.tgz

HTTP server cookie parsing and serialization

Library home page: https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz

Path to dependency file: /backend/package.json

Path to vulnerable library: /backend/node_modules/express/node_modules/cookie/package.json,/node_modules/cookie/package.json,/frontend/node_modules/cookie/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • express-4.18.1.tgz
        • cookie-0.5.0.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

damn-vulnerable-crypto-app-backend-1.0.0/src/middlewares/cspMiddleware.ts (Application)
  -> express-4.18.1/index.js (Extension)
   -> express-4.18.1/lib/express.js (Extension)
    -> express-4.18.1/lib/response.js (Extension)
     -> ❌ cookie-0.5.0/index.js (Vulnerable Component)

Vulnerability Details

cookie is a basic HTTP cookie parser and serializer for HTTP servers. The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie. Upgrade to 0.7.0, which updates the validation for name, path, and domain.

Publish Date: 2024-10-04

URL: CVE-2024-47764

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-pxg6-pf52-xh8x

Release Date: 2024-10-04

Fix Resolution: cookie - 0.7.0

CVE-2024-43800

Vulnerable Library - serve-static-1.15.0.tgz

Serve static files

Library home page: https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz

Path to dependency file: /backend/package.json

Path to vulnerable library: /backend/node_modules/serve-static/package.json,/frontend/node_modules/serve-static/package.json,/node_modules/serve-static/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • express-4.18.1.tgz
        • serve-static-1.15.0.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

damn-vulnerable-crypto-app-backend-1.0.0/src/middlewares/cspMiddleware.ts (Application)
  -> express-4.18.1/index.js (Extension)
   -> express-4.18.1/lib/express.js (Extension)
    -> ❌ serve-static-1.15.0/index.js (Vulnerable Component)

Vulnerability Details

serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.

Publish Date: 2024-09-10

URL: CVE-2024-43800

CVSS 3 Score Details (5.0)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-cm22-4g7w-348p

Release Date: 2024-09-10

Fix Resolution: serve-static - 1.16.0,2.1.0

CVE-2024-43799

Vulnerable Library - send-0.18.0.tgz

Better streaming static file server with Range and conditional-GET support

Library home page: https://registry.npmjs.org/send/-/send-0.18.0.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/send/package.json,/node_modules/send/package.json,/backend/node_modules/send/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • express-4.18.1.tgz
        • send-0.18.0.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

damn-vulnerable-crypto-app-backend-1.0.0/src/middlewares/cspMiddleware.ts (Application)
  -> express-4.18.1/index.js (Extension)
   -> express-4.18.1/lib/express.js (Extension)
    -> express-4.18.1/lib/response.js (Extension)
     -> ❌ send-0.18.0/index.js (Vulnerable Component)

Vulnerability Details

Send is a library for streaming files from the file system as a http response. Send passes untrusted user input to SendStream.redirect() which executes untrusted code. This issue is patched in send 0.19.0.

Publish Date: 2024-09-10

URL: CVE-2024-43799

CVSS 3 Score Details (5.0)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-m6fv-jmcg-4jfg

Release Date: 2024-09-10

Fix Resolution: send - 0.19.0

CVE-2023-28154

Vulnerable Library - webpack-5.73.0.tgz

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

Library home page: https://registry.npmjs.org/webpack/-/webpack-5.73.0.tgz

Path to dependency file: /frontend/package.json

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

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-5.73.0.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

Webpack 5 before 5.76.0 does not avoid cross-realm object access. ImportParserPlugin.js mishandles the magic comment feature. An attacker who controls a property of an untrusted object can obtain access to the real global object.

Publish Date: 2023-03-13

URL: CVE-2023-28154

CVSS 3 Score Details (9.8)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2023-03-13

Fix Resolution: webpack - 5.76.0

CVE-2022-37601

Vulnerable Library - loader-utils-2.0.2.tgz

utils for webpack loaders

Library home page: https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/adjust-sourcemap-loader/node_modules/loader-utils/package.json,/frontend/node_modules/loader-utils/package.json

Dependency Hierarchy:

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

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

Prototype pollution vulnerability in function parseQuery in parseQuery.js in webpack loader-utils via the name variable in parseQuery.js. This affects all versions prior to 1.4.1 and 2.0.3.

Publish Date: 2022-10-12

URL: CVE-2022-37601

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • 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-76p3-8jx3-jpfq

Release Date: 2022-10-12

Fix Resolution: loader-utils - 1.4.1,2.0.3

CVE-2023-45133

Vulnerable Library - traverse-7.18.2.tgz

The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes

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

Path to dependency file: /package.json

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

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • babel-preset-react-app-10.0.1.tgz
      • plugin-proposal-decorators-7.18.2.tgz
        • helper-replace-supers-7.18.2.tgz
          • traverse-7.18.2.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

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

CVE-2024-33883

Vulnerable Library - ejs-3.1.8.tgz

Embedded JavaScript templates

Library home page: https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz

Path to dependency file: /frontend/package.json

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

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • workbox-webpack-plugin-6.5.3.tgz
      • workbox-build-6.5.3.tgz
        • rollup-plugin-off-main-thread-2.2.3.tgz
          • ejs-3.1.8.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

The ejs (aka Embedded JavaScript templates) package before 3.1.10 for Node.js lacks certain pollution protection.

Publish Date: 2024-04-28

URL: CVE-2024-33883

CVSS 3 Score Details (8.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • 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: https://www.cve.org/CVERecord?id=CVE-2024-33883

Release Date: 2024-04-28

Fix Resolution: ejs - 3.1.10

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

Path to vulnerable library: /node_modules/watchpack/node_modules/braces/package.json,/frontend/node_modules/braces/package.json,/node_modules/fork-ts-checker-webpack-plugin/node_modules/braces/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • eslint-webpack-plugin-3.1.1.tgz
      • micromatch-4.0.5.tgz
        • braces-3.0.2.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

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

CVE-2024-37890

Vulnerable Libraries - ws-7.5.8.tgz, ws-8.7.0.tgz

ws-7.5.8.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-7.5.8.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/jsdom/node_modules/ws/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • jest-27.5.1.tgz
      • core-27.5.1.tgz
        • jest-config-27.5.1.tgz
          • jest-environment-jsdom-27.5.1.tgz
            • jsdom-16.7.0.tgz
              • ws-7.5.8.tgz (Vulnerable Library)

ws-8.7.0.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-8.7.0.tgz

Path to dependency file: /frontend/package.json

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

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • ws-8.7.0.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in [email protected] (e55e510) and backported to [email protected] (22c2876), [email protected] (eeb76d3), and [email protected] (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.

Publish Date: 2024-06-17

URL: CVE-2024-37890

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: GHSA-3h5v-q93c-6h6q

Release Date: 2024-06-17

Fix Resolution: ws - 5.2.4,6.2.3,7.5.10,8.17.1

CVE-2022-37603

Vulnerable Libraries - loader-utils-2.0.2.tgz, loader-utils-3.2.0.tgz

loader-utils-2.0.2.tgz

utils for webpack loaders

Library home page: https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/adjust-sourcemap-loader/node_modules/loader-utils/package.json,/frontend/node_modules/loader-utils/package.json

Dependency Hierarchy:

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

loader-utils-3.2.0.tgz

utils for webpack loaders

Library home page: https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.0.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/react-dev-utils/node_modules/loader-utils/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • react-dev-utils-12.0.1.tgz
      • loader-utils-3.2.0.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

A Regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils 2.0.0 via the url variable in interpolateName.js.

Publish Date: 2022-10-14

URL: CVE-2022-37603

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: GHSA-3rfm-jhwj-7488

Release Date: 2022-10-14

Fix Resolution: loader-utils - 1.4.2,2.0.4,3.2.1

CVE-2022-37599

Vulnerable Library - loader-utils-2.0.2.tgz

utils for webpack loaders

Library home page: https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/adjust-sourcemap-loader/node_modules/loader-utils/package.json,/frontend/node_modules/loader-utils/package.json

Dependency Hierarchy:

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

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

A Regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils 2.0.0 via the resourcePath variable in interpolateName.js.

Publish Date: 2022-10-11

URL: CVE-2022-37599

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: GHSA-hhq3-ff78-jv3g

Release Date: 2022-10-11

Fix Resolution: loader-utils - 1.4.2,2.0.4,3.2.1

CVE-2022-3517

Vulnerable Library - minimatch-3.0.4.tgz

a glob matcher in javascript

Library home page: https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/recursive-readdir/node_modules/minimatch/package.json,/frontend/node_modules/recursive-readdir/node_modules/minimatch/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • react-dev-utils-12.0.1.tgz
      • recursive-readdir-2.2.2.tgz
        • minimatch-3.0.4.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

A vulnerability was found in the minimatch package. This flaw allows a Regular Expression Denial of Service (ReDoS) when calling the braceExpand function with specific arguments, resulting in a Denial of Service.

Publish Date: 2022-10-17

URL: CVE-2022-3517

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: 2022-10-17

Fix Resolution: minimatch - 3.0.5

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

Path to vulnerable library: /node_modules/nth-check/package.json,/frontend/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 HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

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

CVE-2024-29180

Vulnerable Library - webpack-dev-middleware-5.3.3.tgz

A development middleware for webpack

Library home page: https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/webpack-dev-middleware/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • webpack-dev-middleware-5.3.3.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

Prior to versions 7.1.0, 6.1.2, and 5.3.4, the webpack-dev-middleware development middleware for devpack does not validate the supplied URL address sufficiently before returning the local file. It is possible to access any file on the developer's machine. The middleware can either work with the physical filesystem when reading the files or it can use a virtualized in-memory memfs filesystem. If writeToDisk configuration option is set to true, the physical filesystem is used. The getFilenameFromUrl method is used to parse URL and build the local file path. The public path prefix is stripped from the URL, and the unsecaped path suffix is appended to the outputPath. As the URL is not unescaped and normalized automatically before calling the midlleware, it is possible to use %2e and %2f sequences to perform path traversal attack.

Developers using webpack-dev-server or webpack-dev-middleware are affected by the issue. When the project is started, an attacker might access any file on the developer's machine and exfiltrate the content. If the development server is listening on a public IP address (or 0.0.0.0), an attacker on the local network can access the local files without any interaction from the victim (direct connection to the port). If the server allows access from third-party domains, an attacker can send a malicious link to the victim. When visited, the client side script can connect to the local server and exfiltrate the local files. Starting with fixed versions 7.1.0, 6.1.2, and 5.3.4, the URL is unescaped and normalized before any further processing.

Publish Date: 2024-03-21

URL: CVE-2024-29180

CVSS 3 Score Details (7.4)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • 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-wr3j-pwj9-hqq6

Release Date: 2024-03-21

Fix Resolution: webpack-dev-middleware - 5.3.4,6.1.2,7.1.0

CVE-2023-26159

Vulnerable Library - follow-redirects-1.15.1.tgz

HTTP and HTTPS modules that follow redirects.

Library home page: https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/follow-redirects/package.json,/frontend/node_modules/follow-redirects/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • http-proxy-middleware-2.0.6.tgz
        • http-proxy-1.18.1.tgz
          • follow-redirects-1.15.1.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname. An attacker could exploit this weakness to redirect traffic to a malicious site, potentially leading to information disclosure, phishing attacks, or other security breaches.

Publish Date: 2024-01-02

URL: CVE-2023-26159

CVSS 3 Score Details (7.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2023-26159

Release Date: 2024-01-02

Fix Resolution: follow-redirects - 1.15.4

CVE-2022-46175

Vulnerable Libraries - json5-2.2.1.tgz, json5-1.0.1.tgz

json5-2.2.1.tgz

JSON for humans.

Library home page: https://registry.npmjs.org/json5/-/json5-2.2.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/json5/package.json,/frontend/node_modules/json5/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • workbox-webpack-plugin-6.5.3.tgz
      • workbox-build-6.5.3.tgz
        • rollup-plugin-off-main-thread-2.2.3.tgz
          • json5-2.2.1.tgz (Vulnerable Library)

json5-1.0.1.tgz

JSON for humans.

Library home page: https://registry.npmjs.org/json5/-/json5-1.0.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/loader-utils/node_modules/json5/package.json,/frontend/node_modules/tsconfig-paths/node_modules/json5/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • eslint-config-react-app-7.0.1.tgz
      • eslint-plugin-import-2.26.0.tgz
        • tsconfig-paths-3.14.1.tgz
          • json5-1.0.1.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for config files). The parse method of the JSON5 library before and including versions 1.0.1 and 2.2.1 does not restrict parsing of keys named __proto__, allowing specially crafted strings to pollute the prototype of the resulting object. This vulnerability pollutes the prototype of the object returned by JSON5.parse and not the global Object prototype, which is the commonly understood definition of Prototype Pollution. However, polluting the prototype of a single object can have significant security impact for an application if the object is later used in trusted operations. This vulnerability could allow an attacker to set arbitrary and unexpected keys on the object returned from JSON5.parse. The actual impact will depend on how applications utilize the returned object and how they filter unwanted keys, but could include denial of service, cross-site scripting, elevation of privilege, and in extreme cases, remote code execution. JSON5.parse should restrict parsing of __proto__ keys when parsing JSON strings to objects. As a point of reference, the JSON.parse method included in JavaScript ignores __proto__ keys. Simply changing JSON5.parse to JSON.parse in the examples above mitigates this vulnerability. This vulnerability is patched in json5 versions 1.0.2, 2.2.2, and later.

Publish Date: 2022-12-24

URL: CVE-2022-46175

CVSS 3 Score Details (7.1)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2022-46175

Release Date: 2022-12-24

Fix Resolution: json5 - 2.2.2

CVE-2024-28849

Vulnerable Library - follow-redirects-1.15.1.tgz

HTTP and HTTPS modules that follow redirects.

Library home page: https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/follow-redirects/package.json,/frontend/node_modules/follow-redirects/package.json

Dependency Hierarchy:

  • react-scripts-5.0.1.tgz (Root Library)
    • webpack-dev-server-4.9.1.tgz
      • http-proxy-middleware-2.0.6.tgz
        • http-proxy-1.18.1.tgz
          • follow-redirects-1.15.1.tgz (Vulnerable Library)

Found in HEAD commit: a3ba1679b8965c9f00f5ca1f92a5800372757c57

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

follow-redirects is an open source, drop-in replacement for Node's http and https modules that automatically follows redirects. In affected versions follow-redirects only clears authorization header during cross-domain redirect, but keep the proxy-authentication header which contains credentials too. This vulnerability may lead to credentials leak, but has been addressed in version 1.15.6. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Publish Date: 2024-03-14

URL: CVE-2024-28849

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • 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-cxjh-pqwp-8mfp

Release Date: 2024-03-14

Fix Resolution: follow-redirects - 1.15.6

@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Aug 12, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 20 vulnerabilities (highest severity is: 9.8) unreachable react-scripts-5.0.1.tgz: 21 vulnerabilities (highest severity is: 9.8) Aug 28, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 21 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 22 vulnerabilities (highest severity is: 9.8) Sep 15, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 22 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 23 vulnerabilities (highest severity is: 9.8) Sep 30, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 23 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 24 vulnerabilities (highest severity is: 9.8) Oct 12, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 24 vulnerabilities (highest severity is: 9.8) react-scripts-5.0.1.tgz: 26 vulnerabilities (highest severity is: 9.8) reachable Oct 15, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 26 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 27 vulnerabilities (highest severity is: 9.8) reachable Oct 20, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 27 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 28 vulnerabilities (highest severity is: 9.8) reachable Nov 13, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 28 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 27 vulnerabilities (highest severity is: 9.8) reachable Nov 19, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 27 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 28 vulnerabilities (highest severity is: 9.8) reachable Dec 6, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 28 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 29 vulnerabilities (highest severity is: 9.8) reachable Dec 9, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 29 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 30 vulnerabilities (highest severity is: 9.8) reachable Jan 31, 2025
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title react-scripts-5.0.1.tgz: 30 vulnerabilities (highest severity is: 9.8) reachable react-scripts-5.0.1.tgz: 31 vulnerabilities (highest severity is: 9.8) reachable Feb 11, 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