mochajs / mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser
https://mochajs.org
MIT License
22.6k stars 3.01k forks source link

🛠 Repo: Several packages reported by npm audit #5070

Open JoshuaKGoldberg opened 10 months ago

JoshuaKGoldberg commented 10 months ago

Tooling Suggestion Checklist

Overview

Running npm audit reports 58 vulnerabilities (34 moderate, 23 high, 1 critical):

After running npm audit fix locally, npm audit reports 50 vulnerabilities (30 moderate, 20 high):

Additional Info

It's the nature of package vulnerability alerts that most or all of these are false flags. But it's good practice to stay up-to-date just in case.

JoshuaKGoldberg commented 10 months ago

5071 gets most of this. After it the audit report is just 5 vulnerabilities (4 moderate, 1 high):

# npm audit report

request  *
Severity: moderate
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
Depends on vulnerable versions of tough-cookie
No fix available
node_modules/request
  coveralls  *
  Depends on vulnerable versions of request
  node_modules/coveralls
  hyperlink  *
  Depends on vulnerable versions of request
  node_modules/hyperlink

taffydb  *
Severity: high
TaffyDB can allow access to any data items in the DB - https://github.com/advisories/GHSA-mxhp-79qh-mcx6
No fix available
node_modules/taffydb

tough-cookie  <4.1.3
Severity: moderate
tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3
No fix available
node_modules/request/node_modules/tough-cookie

5 vulnerabilities (4 moderate, 1 high)

Some issues need review, and may require choosing
a different dependency.

Looking at the three relevant packages:

voxpelli commented 7 months ago

Related:

voxpelli commented 3 months ago

coveralls is gone #5128 and assetgraph since #5175, so of the three packages not dealt with by #5071 they all remain, but tough-cookie only because of taffydb now and request only due to hyperlink

5042 also removes a couple of dependencies and may help clean things up

voxpelli commented 3 months ago

And hyperlink is gone since #5176, so request dependency should be gone – only @mocha/docdash / #5072 remains, and the #5071