WS-2020-0042 (High) detected in acorn-5.7.3.tgz, acorn-6.1.1.tgz
mend-bolt-for-github opened this issue · comments
WS-2020-0042 - High Severity Vulnerability
Vulnerable Libraries - acorn-5.7.3.tgz, acorn-6.1.1.tgz
acorn-5.7.3.tgz
ECMAScript parser
Library home page: https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz
Path to dependency file: /ts-model/package.json
Path to vulnerable library: /node_modules/acorn/package.json
Dependency Hierarchy:
- tsdx-0.5.9.tgz (Root Library)
- jest-24.8.0.tgz
- jest-cli-24.8.0.tgz
- jest-config-24.8.0.tgz
- jest-environment-jsdom-24.8.0.tgz
- jsdom-11.12.0.tgz
- ❌ acorn-5.7.3.tgz (Vulnerable Library)
- jsdom-11.12.0.tgz
- jest-environment-jsdom-24.8.0.tgz
- jest-config-24.8.0.tgz
- jest-cli-24.8.0.tgz
- jest-24.8.0.tgz
acorn-6.1.1.tgz
ECMAScript parser
Library home page: https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz
Path to dependency file: /ts-model/package.json
Path to vulnerable library: /node_modules/rollup-plugin-size-snapshot/node_modules/acorn/package.json
Dependency Hierarchy:
- tsdx-0.5.9.tgz (Root Library)
- jest-24.8.0.tgz
- jest-cli-24.8.0.tgz
- jest-config-24.8.0.tgz
- jest-environment-jsdom-24.8.0.tgz
- jsdom-11.12.0.tgz
- acorn-globals-4.3.2.tgz
- ❌ acorn-6.1.1.tgz (Vulnerable Library)
- acorn-globals-4.3.2.tgz
- jsdom-11.12.0.tgz
- jest-environment-jsdom-24.8.0.tgz
- jest-config-24.8.0.tgz
- jest-cli-24.8.0.tgz
- jest-24.8.0.tgz
Vulnerability Details
acorn is vulnerable to REGEX DoS. A regex of the form /[x-\ud800]/u causes the parser to enter an infinite loop. attackers may leverage the vulnerability leading to a Denial of Service since the string is not valid UTF16 and it results in it being sanitized before reaching the parser.
Publish Date: 2020-03-01
URL: WS-2020-0042
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
Suggested Fix
Type: Upgrade version
Origin: GHSA-6chw-6frg-f759
Release Date: 2020-03-01
Fix Resolution (acorn): 5.7.4
Direct dependency fix Resolution (tsdx): 0.5.10
Fix Resolution (acorn): 6.4.1
Direct dependency fix Resolution (tsdx): 0.5.10
Step up your Open Source Security Game with Mend here