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

Update mocha@6 to fix critical vulnerability #139

Closed
wants to merge 2 commits into from

Conversation

pedrobranco
Copy link
Collaborator

@pedrobranco pedrobranco commented Jul 25, 2022

Using mocha@4:

❯ yarn audit --level critical
yarn audit v1.22.19
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ Prototype Pollution in minimist                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimist                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in>=1.2.6                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ mocha                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ mocha > mkdirp > minimist                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1067342                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
11 vulnerabilities found - Packages audited: 508
Severity: 2 Low | 6 Moderate | 2 High | 1 Critical
✨  Done in 0.80s.

After updating to mocha@6:

❯ yarn audit --level critical
yarn audit v1.22.19
warning mocha > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning mocha > [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
8 vulnerabilities found - Packages audited: 566
Severity: 2 Low | 5 Moderate | 1 High
✨  Done in 1.31s.

@pedrobranco pedrobranco changed the title Update mocha@10 to fix critical vulnerability Update mocha@6 to fix critical vulnerability Jul 25, 2022
@pedrobranco
Copy link
Collaborator Author

Closing on behalf of getting #48.

@pedrobranco pedrobranco deleted the support/upgrade-mocha branch July 25, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant