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-2019-0425 (Medium) detected in multiple libraries - autoclosed #199

Closed
mend-for-github-com bot opened this issue Jul 23, 2021 · 2 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-2019-0425 - Medium Severity Vulnerability

Vulnerable Libraries - mocha-2.2.5.js, mocha-1.21.5.tgz, mocha-1.8.1.js

mocha-2.2.5.js

simple, flexible, fun test framework

Library home page: https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.js

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/js-base64/.attic/test-moment/index.html

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/js-base64/.attic/test-moment/index.html

Dependency Hierarchy:

  • mocha-2.2.5.js (Vulnerable Library)
mocha-1.21.5.tgz

simple, flexible, fun test framework

Library home page: https://registry.npmjs.org/mocha/-/mocha-1.21.5.tgz

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm6/path_dependency/deps/etag/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm6/path_dependency/deps/etag/node_modules/mocha/package.json,/npm_and_yarn/spec/fixtures/projects/npm7/path_dependency/deps/etag/node_modules/mocha/package.json,/npm_and_yarn/spec/fixtures/projects/npm7/library/node_modules/mocha/package.json,/npm_and_yarn/spec/fixtures/projects/npm6_and_yarn/path_dependency/deps/etag/node_modules/mocha/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/etag_no_lockfile/node_modules/mocha/package.json

Dependency Hierarchy:

  • mocha-1.21.5.tgz (Vulnerable Library)
mocha-1.8.1.js

simple, flexible, fun test framework

Library home page: https://cdnjs.cloudflare.com/ajax/libs/mocha/1.8.1/mocha.js

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_local_file/node_modules/component-each/node_modules/component-type/test/index.html

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_local_file/node_modules/component-each/node_modules/component-type/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/yarn/git_dependency_local_file/node_modules/component-type/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_local_file/node_modules/component-type/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/yarn/git_dependency_local_file/node_modules/to-no-case/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/npm7/git_dependency_local_file/node_modules/to-no-case/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/yarn/git_dependency_local_file/node_modules/component-each/node_modules/component-type/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_local_file/node_modules/to-no-case/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/npm7/git_dependency_local_file/node_modules/component-each/node_modules/component-type/test/mocha.js,/npm_and_yarn/spec/fixtures/projects/npm7/git_dependency_local_file/node_modules/component-type/test/mocha.js

Dependency Hierarchy:

  • mocha-1.8.1.js (Vulnerable Library)

Found in HEAD commit: ba8cd9078c8ce0cb202767d627706711237abf71

Found in base branch: main

Vulnerability Details

Mocha is vulnerable to ReDoS attack. If the stack trace in utils.js begins with a large error message, and full-trace is not enabled, utils.stackTraceFilter() will take exponential run time.

Publish Date: 2019-01-24

URL: WS-2019-0425

CVSS 3 Score Details (5.3)

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: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2019-01-24

Fix Resolution: v6.0.0


⛑️ Automatic Remediation will be attempted for this issue.

@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-2019-0425 (Medium) detected in mocha-1.21.5.tgz WS-2019-0425 (Medium) detected in mocha-1.21.5.tgz - 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
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-2019-0425 (Medium) detected in mocha-1.21.5.tgz - autoclosed WS-2019-0425 (Medium) detected in mocha-1.21.5.tgz Mar 23, 2022
@mend-for-github-com mend-for-github-com bot reopened this Mar 23, 2022
@mend-for-github-com mend-for-github-com bot changed the title WS-2019-0425 (Medium) detected in mocha-1.21.5.tgz WS-2019-0425 (Medium) detected in mocha-1.21.5.tgz, mocha-1.8.1.js Jan 7, 2023
@mend-for-github-com mend-for-github-com bot changed the title WS-2019-0425 (Medium) detected in mocha-1.21.5.tgz, mocha-1.8.1.js WS-2019-0425 (Medium) detected in multiple libraries Jan 8, 2023
@mend-for-github-com mend-for-github-com bot changed the title WS-2019-0425 (Medium) detected in multiple libraries WS-2019-0425 (Medium) detected in multiple libraries - autoclosed May 5, 2024
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