rvvergara / advanced-web-developer-bootcamp-notes-examples-and-exercises

Examples and Exercises compiled. From the awesome Advanced Web Developer Bootcamp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WS-2019-0425 (Medium) detected in mocha-2.2.5.js

mend-bolt-for-github opened this issue · comments

WS-2019-0425 - Medium Severity Vulnerability

Vulnerable Library - 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: /Section27-State/update-complex-state/node_modules/js-base64/test/index.html

Path to vulnerable library: /Section27-State/update-complex-state/node_modules/js-base64/test/index.html,/Section34-37-Warbler-Final-Project/warbler/warbler-client/node_modules/js-base64/test/index.html,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/js-base64/test/index.html,/Section28-The-Virtual-DOM-Events-and-Forms/recipe-app-with-state/node_modules/js-base64/test/index.html,/Section27-State/random-boxes-starter/node_modules/js-base64/test/index.html,/Section26-Create-React-App-and-Props/recipe-props-starter/node_modules/js-base64/test/index.html,/Section29-Component-LifeCycle-Methods/hacker-news/node_modules/js-base64/test/index.html,/Section26-Create-React-App-and-Props/helloworld/node_modules/js-base64/test/index.html,/Section33-In-Depth-Redux-Code-Walkthrough/react-redux-todos/node_modules/js-base64/test-moment/index.html,/Section30-Building-A-FullStack-App-With-React/fullstack-todo-app/todos-react-frontent/node_modules/js-base64/test-moment/index.html,/Section29-Component-LifeCycle-Methods/flag-guessing-game/node_modules/js-base64/test/index.html,/Section27-State/pass-state-to-props-demo/node_modules/js-base64/test-moment/index.html

Dependency Hierarchy:

  • mocha-2.2.5.js (Vulnerable Library)

Found in HEAD commit: d80f181a2f4dd1169fbef38813309ffdd4ad82d4

Found in base branch: master

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


Step up your Open Source Security Game with Mend here