camcrosbie / Angular-GettingStarted

Sample Angular application used in the "Angular: Getting Started" course: http://bit.ly/Angular-GettingStarted
MIT License
0 stars 0 forks source link

CVE-2021-3807 (High) detected in multiple libraries #99

Open mend-bolt-for-github[bot] opened 5 months ago

mend-bolt-for-github[bot] commented 5 months ago

CVE-2021-3807 - High Severity Vulnerability

Vulnerable Libraries - ansi-regex-4.1.0.tgz, ansi-regex-3.0.0.tgz, ansi-regex-5.0.0.tgz

ansi-regex-4.1.0.tgz

Regular expression for matching ANSI escape codes

Library home page: https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz

Path to dependency file: /APM-Start/package.json

Path to vulnerable library: /APM-Start/node_modules/webpack-dev-server/node_modules/string-width/node_modules/ansi-regex/package.json,/APM-Start/node_modules/webpack-dev-server/node_modules/wrap-ansi/node_modules/ansi-regex/package.json,/APM-Start/node_modules/webpack-dev-server/node_modules/cliui/node_modules/ansi-regex/package.json,/APM-Final/node_modules/yargs/node_modules/ansi-regex/package.json

Dependency Hierarchy: - build-angular-0.1102.12.tgz (Root Library) - webpack-dev-server-3.11.2.tgz - yargs-13.3.2.tgz - cliui-5.0.0.tgz - strip-ansi-5.2.0.tgz - :x: **ansi-regex-4.1.0.tgz** (Vulnerable Library)

ansi-regex-3.0.0.tgz

Regular expression for matching ANSI escape codes

Library home page: https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz

Path to dependency file: /APM-Final/package.json

Path to vulnerable library: /APM-Final/node_modules/wide-align/node_modules/ansi-regex/package.json,/APM-Start/node_modules/wide-align/node_modules/ansi-regex/package.json

Dependency Hierarchy: - cli-11.2.12.tgz (Root Library) - pacote-11.2.4.tgz - run-script-1.8.5.tgz - node-gyp-7.1.2.tgz - npmlog-4.1.2.tgz - gauge-2.7.4.tgz - wide-align-1.1.3.tgz - string-width-2.1.1.tgz - strip-ansi-4.0.0.tgz - :x: **ansi-regex-3.0.0.tgz** (Vulnerable Library)

ansi-regex-5.0.0.tgz

Regular expression for matching ANSI escape codes

Library home page: https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz

Path to dependency file: /APM-Start/package.json

Path to vulnerable library: /APM-Start/node_modules/protractor/node_modules/wrap-ansi/node_modules/ansi-regex/package.json,/APM-Start/node_modules/protractor/node_modules/cliui/node_modules/ansi-regex/package.json,/APM-Start/node_modules/ansi-regex/package.json,/APM-Final/node_modules/ansi-regex/package.json

Dependency Hierarchy: - protractor-7.0.0.tgz (Root Library) - yargs-15.4.1.tgz - cliui-6.0.0.tgz - wrap-ansi-6.2.0.tgz - strip-ansi-6.0.0.tgz - :x: **ansi-regex-5.0.0.tgz** (Vulnerable Library)

Found in HEAD commit: b46d7af5159dce3099396a98e8b99a89e538e1bc

Found in base branch: main

Vulnerability Details

ansi-regex is vulnerable to Inefficient Regular Expression Complexity

Publish Date: 2021-09-17

URL: CVE-2021-3807

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://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994/

Release Date: 2021-09-17

Fix Resolution (ansi-regex): 4.1.1

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

Fix Resolution (ansi-regex): 4.1.1

Direct dependency fix Resolution (@angular/cli): 11.2.13


Step up your Open Source Security Game with Mend here