logzio / logzio-azure-serverless

Azure function that ships Logs to logz.io
Apache License 2.0
10 stars 12 forks source link

WS-2020-0042 (High) detected in acorn-5.7.3.tgz, acorn-6.1.1.tgz #44

Closed mend-for-github-com[bot] closed 3 years ago

mend-for-github-com[bot] commented 4 years ago

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: /tmp/ws-scm/logzio-azure-serverless/package.json

Path to vulnerable library: /tmp/ws-scm/logzio-azure-serverless/node_modules/jsdom/node_modules/acorn/package.json

Dependency Hierarchy: - jest-24.8.0.tgz (Root Library) - jest-cli-24.8.0.tgz - jest-config-24.8.0.tgz - jest-environment-jsdom-24.8.0.tgz - jsdom-11.12.0.tgz - :x: **acorn-5.7.3.tgz** (Vulnerable Library)

acorn-6.1.1.tgz

ECMAScript parser

Library home page: https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz

Path to dependency file: /tmp/ws-scm/logzio-azure-serverless/package.json

Path to vulnerable library: /tmp/ws-scm/logzio-azure-serverless/node_modules/espree/node_modules/acorn/package.json

Dependency Hierarchy: - eslint-5.16.0.tgz (Root Library) - espree-5.0.1.tgz - :x: **acorn-6.1.1.tgz** (Vulnerable Library)

Found in HEAD commit: f31919f3746fb35ddb5e89bd8a69b5d5b5123a93

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.npmjs.com/advisories/1488

Release Date: 2020-03-08

Fix Resolution: 7.1.1

Doron-Bargo commented 3 years ago

Fixed