-
Notifications
You must be signed in to change notification settings - Fork 570
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
regression: Grype 0.54.0 does not find vulnerabilities in Nodejs runtime itself anymore #1043
Comments
(context: adding |
Running the latest version of syft when building the above
The latest version of grype filters out the binary result which causes matching to only happen against the The original match was using nvd against the binary result. If this result is filtered out then we only match against the alpine data: Pulling the latest vulnerability db I only see entries for the following:
Does the CVE not existing in the We probably should just be matching against NVD and only using the above database to turn things off. |
Hmm @spiffcs, but isn't that already how the APK matcher is supposed to be working? Remember that it works differently from the other matchers and gathers matches from NVD and then uses the alpine entries to deselect. |
Does this maybe indicate we just need more robust |
An update here: |
What happened:
After an update from 0.53.1 to 0.54 we realized that Grype scanner does not find any vulnerability in the nodejs runtime itself anymore. It happens for different Nodejs runtimes 12.x / 14.x / 16.x - all open vulnerabilities are not reported anymore.
What you expected to happen:
Old scanner versions (up to 0.53.1) reported the following vulnerabilities (only taken HIGH/CRITICAL into account, there are multpile MEDIUM as well):
Alpine 3.14:
old versions reported:
node 14.20.1 CVE-2022-35256 Critical
node 14.20.1 CVE-2022-43548 High
new version reports nothing
Alpine 3.16 with OS package "nodejs"
old version reported:
node 16.17.1 CVE-2022-43548 High
new version reports nothing
How to reproduce it (as minimally and precisely as possible):
Our Dockerfile is quite simple in regard to this packages (alpine version does not matter really - it just installs different version of Nodejs, all with open issues at time):
As can be seen in the Alpine security database these vulnerabilities are not fixed by now and no false positives:
e.g. https://secdb.alpinelinux.org/v3.16/main.json
Anything else we need to know?:
Environment:
grype version
: 0.54.0cat /etc/os-release
or similar): Alpine (3.14 up to 3.17)The text was updated successfully, but these errors were encountered: