Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WS-2020-0042 (High) detected in multiple libraries - autoclosed #145

Closed
mend-for-github-com bot opened this issue Jul 23, 2021 · 3 comments
Closed
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-for-github-com
Copy link

mend-for-github-com bot commented Jul 23, 2021

WS-2020-0042 - High Severity Vulnerability

Vulnerable Libraries - acorn_loose.es-5.5.3.js, acorn_loose-5.5.3.js, acorn-6.1.1.js, acorn.es-5.5.3.js, acorn-5.5.3.js, acorn-5.5.3.tgz, acorn-5.7.3.tgz, acorn-6.1.1.tgz, acorn-6.0.4.tgz

acorn_loose.es-5.5.3.js

ECMAScript parser

Library home page: https://cdnjs.cloudflare.com/ajax/libs/acorn/5.5.3/acorn_loose.es.js

Path to vulnerable library: /s

Dependency Hierarchy:

  • acorn_loose.es-5.5.3.js (Vulnerable Library)
acorn_loose-5.5.3.js

ECMAScript parser

Library home page: https://cdnjs.cloudflare.com/ajax/libs/acorn/5.5.3/acorn_loose.js

Path to vulnerable library: /_loose.js

Dependency Hierarchy:

  • acorn_loose-5.5.3.js (Vulnerable Library)
acorn-6.1.1.js

ECMAScript parser

Library home page: https://cdnjs.cloudflare.com/ajax/libs/acorn/6.1.1/acorn.js

Path to vulnerable library: /acorn.js

Dependency Hierarchy:

  • acorn-6.1.1.js (Vulnerable Library)
acorn.es-5.5.3.js

ECMAScript parser

Library home page: https://cdnjs.cloudflare.com/ajax/libs/acorn/5.5.3/acorn.es.js

Path to vulnerable library: /.es.js

Dependency Hierarchy:

  • acorn.es-5.5.3.js (Vulnerable Library)
acorn-5.5.3.js

ECMAScript parser

Library home page: https://cdnjs.cloudflare.com/ajax/libs/acorn/5.5.3/acorn.js

Path to vulnerable library: /.js

Dependency Hierarchy:

  • acorn-5.5.3.js (Vulnerable Library)
acorn-5.5.3.tgz

ECMAScript parser

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

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm7/subdependency_update/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm7/subdependency_update/node_modules/acorn/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/subdependency_update/node_modules/acorn/package.json,/npm_and_yarn/spec/fixtures/projects/npm6_and_yarn/npm_subdependency_update/node_modules/acorn/package.json

Dependency Hierarchy:

  • jest-22.0.4.tgz (Root Library)
    • jest-cli-22.4.4.tgz
      • jest-environment-jsdom-22.4.3.tgz
        • jsdom-11.12.0.tgz
          • acorn-5.5.3.tgz (Vulnerable Library)
acorn-5.7.3.tgz

ECMAScript parser

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

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/yarn/peer_dependency_multiple/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/peer_dependency_multiple/node_modules/acorn,/npm_and_yarn/spec/fixtures/projects/npm6/peer_dependency_multiple/node_modules/acorn/package.json

Dependency Hierarchy:

  • react-0.14.9.tgz (Root Library)
    • envify-3.4.1.tgz
      • jstransform-11.0.3.tgz
        • commoner-0.10.8.tgz
          • detective-4.7.1.tgz
            • 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: /npm_and_yarn/spec/fixtures/projects/npm6_and_yarn/npm_subdependency_update/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm6_and_yarn/npm_subdependency_update/node_modules/acorn-globals/node_modules/acorn/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/subdependency_update/node_modules/acorn-globals/node_modules/acorn/package.json,/npm_and_yarn/spec/fixtures/projects/npm7/subdependency_update/node_modules/acorn-globals/node_modules/acorn/package.json

Dependency Hierarchy:

  • jest-22.0.4.tgz (Root Library)
    • jest-cli-22.4.4.tgz
      • jest-environment-jsdom-22.4.3.tgz
        • jsdom-11.12.0.tgz
          • acorn-globals-4.3.2.tgz
            • acorn-6.1.1.tgz (Vulnerable Library)
acorn-6.0.4.tgz

ECMAScript parser

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

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm5_and_yarn/npm_subdependency_update/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm5_and_yarn/npm_subdependency_update/node_modules/acorn-globals/node_modules/acorn/package.json,/npm_and_yarn/spec/fixtures/projects/npm5/subdependency_update/node_modules/acorn-globals/node_modules/acorn/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/acorn

Dependency Hierarchy:

  • eslint-5.11.1.tgz (Root Library)
    • espree-5.0.0.tgz
      • acorn-6.0.4.tgz (Vulnerable Library)

Found in HEAD commit: ba8cd9078c8ce0cb202767d627706711237abf71

Found in base branch: main

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-6chw-6frg-f759

Release Date: 2020-03-01

Fix Resolution: acorn - 5.7.4,6.4.1,7.1.1

@mend-for-github-com mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Jul 23, 2021
@mend-for-github-com mend-for-github-com bot changed the title WS-2020-0042 (High) detected in multiple libraries WS-2020-0042 (High) detected in multiple libraries - autoclosed Mar 22, 2022
@mend-for-github-com
Copy link
Author

✔️ This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.

@mend-for-github-com mend-for-github-com bot changed the title WS-2020-0042 (High) detected in multiple libraries - autoclosed WS-2020-0042 (High) detected in multiple libraries Mar 23, 2022
@mend-for-github-com mend-for-github-com bot reopened this Mar 23, 2022
@mend-for-github-com
Copy link
Author

ℹ️ This issue was automatically re-opened by WhiteSource because the vulnerable library in the specific branch(es) has been detected in the WhiteSource inventory.

@mend-for-github-com mend-for-github-com bot changed the title WS-2020-0042 (High) detected in multiple libraries WS-2020-0042 (High) detected in multiple libraries - autoclosed May 5, 2024
Copy link
Author

✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants