Without source path it is impossible to identify the location of a vuln in HTML reports #10027
Unanswered
rungitringit
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I think the problem may be that the reported vulnerabilities lack a "Target" field in the source JSON report. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello,
I'm using Trivy, with the scan2html plugin, to create scheduled HTML reports for Developers on their Linux workstations. The goal is so Developers will catch vulnerabilities in dependencies they use and update any utilities (binaries) they use.
Trivy is an excellent tool for this! Thank you!
Unfortunately some vulnerabilities from the
rootfsscan are simply reported as being in "Python" or "Go". As an OS might have many python components or go binaries and the Developer may use multiple venvs, it is difficult to interpret where the vulnerability actually is.I can't find a way to have them more clearly identified by file path or component. Can you please help?
Here's the output using

html.tplshowing a vulnerability in a urllib3 library from Python somewhere in the OS:The same problem occurs with scan2html, as it presumably has the same limitation from the source report:

If I manually search the json output from trivy for the vulnerability (the vulnerable library or package name can be too generic) I can identify that in this case the vulnerable version is in a venv I own:
however not all vulnerabilities with a generic language name will have the PkgPath field!
Is this a known issue or am I using
rootfsincorrectly?As an aside, while I prefer the output from
scan2html, I am mainly using it because it shows a "target" column which often details file paths fromrootfsscans whichhtml.tpldoes not.Thank you!
Target
Filesystem
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Operating System
Ubuntu 22.04
Version
Beta Was this translation helpful? Give feedback.
All reactions