Skip to content
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

Newtonsoft.JSON not detected in the vulnerability report with --hints option enabled #7027

Open
gururajsn opened this issue Oct 10, 2024 · 3 comments

Comments

@gururajsn
Copy link

gururajsn commented Oct 10, 2024

Issue details
Newtonsoft.JSON is not getting detected under the evidence section in the ODC html vulnerability report with the --hints option enabled when running the tool.

we have Newtonsoft.Json package with version 9.0.1 in the project.assets.json file which is vulnerable to CVE https://nvd.nist.gov/vuln/detail/CVE-2024-21907

Please find attached screenshots related to command run with the --hints file.

The hints file used has an entry to Newtonsoft.Json as a fix from issue #6789

Version of dependency-check used
Dependency-Check Core version 10.0.4

While running the tool it also throws this warning -> [WARN] Unable to determine Package-URL identifiers for 1 dependencies
command with hints flag

Let us know if you need any other info.

@jeremylong
Copy link
Owner

can you provide the Evidence section from the HTML report?

@gururajsn
Copy link
Author

Hi Jeremy, the issue is Newtonsoft.Json package is not getting detected under Dependencies (all) section and hence no evidence section populated for the same.

@jeremylong
Copy link
Owner

The assembly analyzer requires that you scan the DLLs - not the project files. Have you run something like dotnet publish prior to running dependency-check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants