Tim-Demo / JuiceShop

MIT License
0 stars 0 forks source link

CVE-2022-25883 (Medium) detected in multiple libraries #195

Open mend-for-github-com[bot] opened 11 months ago

mend-for-github-com[bot] commented 11 months ago

CVE-2022-25883 - Medium Severity Vulnerability

Vulnerable Libraries - semver-7.0.0.tgz, semver-6.3.0.tgz, semver-7.3.5.tgz, semver-5.7.1.tgz, semver-5.3.0.tgz, semver-7.3.4.tgz

semver-7.0.0.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-7.0.0.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/core-js-compat/node_modules/semver/package.json

Dependency Hierarchy: - build-angular-0.1102.14.tgz (Root Library) - preset-env-7.12.11.tgz - core-js-compat-3.16.2.tgz - :x: **semver-7.0.0.tgz** (Vulnerable Library)

semver-6.3.0.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-6.3.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@babel/core/node_modules/semver/package.json,/node_modules/eslint-plugin-node/node_modules/semver/package.json,/node_modules/spawn-wrap/node_modules/semver/package.json,/frontend/node_modules/stylus/node_modules/semver/package.json,/frontend/node_modules/webpack-dev-server/node_modules/semver/package.json,/frontend/node_modules/make-dir/node_modules/semver/package.json,/node_modules/istanbul-lib-instrument/node_modules/semver/package.json,/node_modules/istanbul-lib-processinfo/node_modules/semver/package.json,/frontend/node_modules/eslint-plugin-node/node_modules/semver/package.json,/node_modules/caching-transform/node_modules/semver/package.json,/node_modules/nyc/node_modules/semver/package.json,/frontend/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json,/node_modules/libxmljs2/node_modules/make-dir/node_modules/semver/package.json,/frontend/node_modules/@angular/compiler-cli/node_modules/semver/package.json,/node_modules/find-cache-dir/node_modules/semver/package.json,/node_modules/istanbul-lib-report/node_modules/semver/package.json,/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json,/frontend/node_modules/istanbul-lib-instrument/node_modules/semver/package.json

Dependency Hierarchy: - karma-coverage-2.0.3.tgz (Root Library) - istanbul-lib-instrument-4.0.3.tgz - :x: **semver-6.3.0.tgz** (Vulnerable Library)

semver-7.3.5.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-7.3.5.tgz

Path to dependency file: /frontend/package.json

Path to vulnerable library: /frontend/node_modules/@npmcli/git/node_modules/semver/package.json,/node_modules/semver/package.json,/frontend/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/package.json,/frontend/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/package.json

Dependency Hierarchy: - :x: **semver-7.3.5.tgz** (Vulnerable Library)

semver-5.7.1.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-5.7.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/normalize-package-data/node_modules/semver/package.json,/node_modules/node-abi/node_modules/semver/package.json,/frontend/node_modules/meow/node_modules/read-pkg/node_modules/semver/package.json,/node_modules/make-dir/node_modules/semver/package.json,/frontend/node_modules/semver-dsl/node_modules/semver/package.json,/frontend/node_modules/@babel/plugin-transform-runtime/node_modules/semver/package.json,/frontend/node_modules/@babel/core/node_modules/semver/package.json,/frontend/node_modules/cross-spawn/node_modules/semver/package.json,/node_modules/node-pre-gyp/node_modules/semver/package.json,/node_modules/execa/node_modules/semver/package.json,/frontend/node_modules/semver-intersect/node_modules/semver/package.json,/node_modules/check-dependencies/node_modules/semver/package.json,/node_modules/sqlite3/node_modules/semver/package.json,/node_modules/webdriver-manager/node_modules/semver/package.json,/frontend/node_modules/normalize-package-data/node_modules/semver/package.json,/frontend/node_modules/@babel/preset-env/node_modules/semver/package.json,/frontend/node_modules/less/node_modules/semver/package.json,/frontend/node_modules/webpack/node_modules/semver/package.json

Dependency Hierarchy: - cli-11.2.14.tgz (Root Library) - update-0.1102.14.tgz - semver-intersect-1.4.0.tgz - :x: **semver-5.7.1.tgz** (Vulnerable Library)

semver-5.3.0.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-5.3.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/node-gyp/node_modules/semver/package.json

Dependency Hierarchy: - sqlite3-5.0.2.tgz (Root Library) - node-gyp-3.8.0.tgz - :x: **semver-5.3.0.tgz** (Vulnerable Library)

semver-7.3.4.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-7.3.4.tgz

Path to dependency file: /frontend/package.json

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

Dependency Hierarchy: - build-angular-0.1102.14.tgz (Root Library) - :x: **semver-7.3.4.tgz** (Vulnerable Library)

Found in HEAD commit: ba236fd18ec3e6450d68d675bce1609d2e5d3230

Found in base branch: main

Vulnerability Details

Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

Publish Date: 2023-06-21

URL: CVE-2022-25883

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-c2qf-rxjj-qqgw

Release Date: 2023-06-21

Fix Resolution (semver): 7.5.2

Direct dependency fix Resolution (@angular-devkit/build-angular): 17.2.0

Fix Resolution (semver): 7.5.2

Direct dependency fix Resolution (karma-coverage): 2.1.0

Fix Resolution (semver): 7.5.2

Direct dependency fix Resolution (@angular-devkit/build-angular): 17.2.0


:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.