fix: CVE correctness — severity, ecosystems, caching (audit H2/H3/M3) - #48
Merged
Conversation
…H2/H3/M3) - H3: severity is computed locally from OSV's own CVSS vector (cvss3_base_score, full v3.1 formula) instead of being discarded. A 9.8 CRITICAL advisory no longer collapses to INFO when NVD is unavailable. NVD is now a fallback only, so classification is deterministic and offline-safe. - H2: add go.mod (Go) and package-lock.json (npm) parsers — those ecosystems got ZERO CVE coverage while the (now-removed) ECOSYSTEMS dict falsely advertised them. .csproj now handles reversed-attr and child-element forms. Verified live: gin 1.6.0 + axios 0.21.0 return 28 real advisories. - M3: don't cache a hollow record when a per-vuln detail fetch fails (was poisoning the 24h cache with INFO); a total OSV failure now warns on stderr instead of silently reading as 'no advisories'. Tests: cvss3_base_score (9.8/5.3/invalid), multi-ecosystem parse incl. go.mod/ package-lock/awkward csproj, langchain live test still green. 23 passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes three CVE-pipeline audit findings.
ECOSYSTEMSdict;.csprojhandles reversed-attr + child-element forms. Verified live: gin 1.6.0 + axios 0.21.0 → 28 advisories.23 tests pass (added CVSS + extended ecosystem tests); langchain live test green.