-
Notifications
You must be signed in to change notification settings - Fork 5
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
CVE-2022-3517 (npm) found on v14.x (Manual) #88
Comments
@facutuesca wondering why this was not automatically found as a dependency of npm. We may want to make sure that the current query against the GitHub data should find vulns in all depedencies. Or possibly somebody at GitHub/npm had looked at it and the suppresed the report. Not sure if they do any of that in the databasel. |
@facutuesca interestingly the CVE includes that node.js is affeted but not npm, that might be one of the reasons, I wonder if we should expand our query against the database to include nodejs in addition to dependencies? I don't that that addresses the question of not finding CVEs reported againts the full dep tree, but probably would have caught this one earlier. |
@mhdawson Yes, the problem is that the CVE is reported against the following CPE:
which means the
(that is, any CVE for a direct dependency, no matter which environment is running on), we didn't get a warning because My question for this report would be, how is Node affected by the vuln in |
@facutuesca I suspect that there may be a number of vulnerabilities which are only reported against an npm module versus all of the modules which use it. Is there no recursive option for npm modules in the GitHub APIs? npm audit will report vulns all the way down the dependency tree and I think we want to do the same in the checks in this repo. In terms of:
I think that is likely just a result of the complexity of the problem, an incorrect choice in terms of flagging what is vulnerable. |
I think we need to look at it recursively. How complex would it be @facutuesca? |
As far as I can tell, no. The Github Advisory Database does not contain information about dependencies of a given package.
I would agree, the report should have said that
I would assume that for The tradeoff here is that we would be creating issues for any vulnerability present in the dependency trees of all of our dependencies. So if we have that: Node and a vulnerability for |
Yes, we've discussed it in the last Security WG meeting. We agreed on testing the recursive approach, and in case it adds a lot of noise, we revert it. |
Is what tools report as problems so it will be good for us to have issues/be aware of all of those in this repo. We of course will only want them for the specific versions that we have in Node.js under deps versus anything else. I'm hoping it should be the exception where any vulns have not already been reported, but we should assess from some initial runs before turning on. |
@nodejs/npm is this something you can help with. If you can comment on the issue with a "yes we'll take a look" or the contrary that would help use figure out the next step for the project. |
@nodejs/npm |
Quick update on this; I've queued up a |
@darcyclarke many thanks for the update! |
@nlf, @lukekarrys any update on the v6.x release that was queued up? |
@nodejs/npm @nlf @lukekarrys is there a better way to reach out to the team at npm? @darcyclarke mentioned you two would be the best contacts now that he's left npm. |
Following up with the release here: npm/cli#5988 |
|
@lukekarrys, @ruyadorno many thanks. @nodejs/releasers we should try to schedule a 14.x release to pick up the new npm v6.14.18 which should cover a number of issues reported in this repo. I think the next regularly planned one is in Feb, but I think it would be good to see if we can do one early Jan to pull in the new npm if possible. |
Here's the backport PR to v14.x: nodejs/node#45936 |
Believe this was addressed by recent security release, closing |
This public CVE is reported against minimatch 3.0.4 which is a dependency of the version of npm in Node.js 14.x.
@nodejs/npm could you help us with an assessment/statement on the severity applicability of this CVE in the context of npm's usage of minimatch?
The text was updated successfully, but these errors were encountered: