-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(security): upgraded flat to version ^5.0.2 #64
Conversation
FWIW this is causing all consumers of mocha to get Dependabot security notifications. See https://snyk.io/vuln/SNYK-JS-FLAT-596927 |
Yeah that's exactly what led me here... |
The change from |
I find that a bit hard to believe that the reason this isn't getting merged is because of the change from In general I think we'll just have to wait for the maintainers to come and give their feedback to know if there's anything wrong here. |
Yeah, I don't think that should be a problem here. I mainly mentioned that in response to this:
|
Has anyone in the yargs org been pinged? @bcoe maybe? |
@bcoe anyone who installs |
This wasn't merged because I lost track of the PR, and the vulnerability wasn't listed in Any ways, sorry for the slow response. |
Much appreciated. I've opened a PR in mocha which includes the new release. |
@AviVahl could you explain to me why I'm not seeing this in |
@bcoe I saw it from using
|
I've personally found Snyk to be the most up-to-date recently. It seems like it takes a little while for vulnerabilities to show up in NPM or GitHub's vulnerability databases |
There are several tools that report audit failures. The author of flat also marked the older version with a deprecation message informing about the security risk (using Both npm and yarn show the deprecation warning. yarn is a bit more explicit. Currently,
and
Deprecation warnings are only shown when that deprecated version is resolved from the registry. If one uses a lock file (either |
The package flat has deprecated many of its versions due to a known vulnerability regarding prototype pollution. The previously used version,
4.1.0
, was one of the many versions that were deprecated. As far as this package is concerned however, upgrading to5.0.2
should cause no issues as theflatten
method did not experience a breaking change in the major version change.