Trivy suggest upgrading to a version that doesn't exist, but exist for a similar dependency #5378
Replies: 1 comment 1 reply
-
Hello @AXDOOMER I asked GitHub team about this advisory - github/advisory-database#2857
These are different packages.
Advisory databases don't include all packages that contain vulnerable package. Regards, Dmitiriy |
Beta Was this translation helpful? Give feedback.
-
Description
Hi,
I have a vulnerability that was discovered in my
package-lock.json
file. A dependency includeslodash.trimend
, which makes it a transitive dependency. Trivy suggests I upgradelodash.trimend
to 4.17.21 although this version doesn't exist on NPM. It only exists for lodash.My dependency (recognizers-text-number) has a fix, but the problem here is more with Trivy suggesting to upgrade to a version of a pacakge that doesn't exist.
Is there a way Trivy could be more specific? At first glance, it looks like a bug in the scanner, but I noticed Snyk has the same issue. From my perspective, it seems to think
lodash.trimend
andlodash
are the same packages. It would be more helpful if Trivy differentiated both packages. What would be even more helpful is if Trivy told me the latest version of recognizers-text-number fixes this vulnerability so that I know the upgrade path.Advisory: https://avd.aquasec.com/nvd/2020/cve-2020-28500/
Desired Behavior
I should probably be made away that the version to upgrade to is from a different dependency.
Actual Behavior
It suggest a version that doesn't exist for the current dependency.
Reproduction Steps
Target
Filesystem
Scanner
Vulnerability
Output Format
JSON
Mode
None
Debug Output
Operating System
Linux
Version
Let me know if needed, will post it soon.
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions