Description
WS-2020-0042 - High Severity Vulnerability
Vulnerable Libraries - acorn-5.5.3.tgz, acorn-3.3.0.tgz, acorn-4.0.13.tgz
acorn-5.5.3.tgz
ECMAScript parser
Library home page: https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz
Path to dependency file: /tmp/ws-scm/guilds.osweekends.com/package.json
Path to vulnerable library: /tmp/ws-scm/guilds.osweekends.com/node_modules/espree/node_modules/acorn/package.json
Dependency Hierarchy:
- eslint-4.19.1.tgz (Root Library)
- espree-3.5.4.tgz
- ❌ acorn-5.5.3.tgz (Vulnerable Library)
- espree-3.5.4.tgz
acorn-3.3.0.tgz
ECMAScript parser
Library home page: https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz
Path to dependency file: /tmp/ws-scm/guilds.osweekends.com/package.json
Path to vulnerable library: /tmp/ws-scm/guilds.osweekends.com/node_modules/acorn/package.json
Dependency Hierarchy:
- eslint-4.19.1.tgz (Root Library)
- espree-3.5.4.tgz
- acorn-jsx-3.0.1.tgz
- ❌ acorn-3.3.0.tgz (Vulnerable Library)
- acorn-jsx-3.0.1.tgz
- espree-3.5.4.tgz
acorn-4.0.13.tgz
ECMAScript parser
Library home page: https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz
Path to dependency file: /tmp/ws-scm/guilds.osweekends.com/package.json
Path to vulnerable library: /tmp/ws-scm/guilds.osweekends.com/node_modules/is-expression/node_modules/acorn/package.json
Dependency Hierarchy:
- pillars-0.7.1.tgz (Root Library)
- templated-0.3.9.tgz
- pug-2.0.0-beta6.tgz
- pug-code-gen-1.1.1.tgz
- with-5.1.1.tgz
- acorn-globals-3.1.0.tgz
- ❌ acorn-4.0.13.tgz (Vulnerable Library)
- acorn-globals-3.1.0.tgz
- with-5.1.1.tgz
- pug-code-gen-1.1.1.tgz
- pug-2.0.0-beta6.tgz
- templated-0.3.9.tgz
Found in HEAD commit: f30dd7a82df3ba133df4217044d20081318714c7
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-08
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: https://www.npmjs.com/advisories/1488
Release Date: 2020-03-08
Fix Resolution: 7.1.1
Step up your Open Source Security Game with WhiteSource here