Report known vulnerabilities in dependencies #338

closed cmc opened this on 2026-10-31 06:12 UTC

Discussion

cmc 2026-10-31 06:12 UTC

The deps worker (#58) reports dependencies that are behind upstream. It does not say whether the pinned versions have published advisories, so a vulnerable dependency reads the same as a routine bump, and one that is vulnerable but current upstream is not reported at all.

Approach: in the same sweep, send the resolved (ecosystem, name, version) set to OSV's /v1/querybatch and report matches with advisory ID, severity and fixed version. Either a section ahead of the update table in the existing issue, or a separate issue per repository so an advisory notification is not lost among update notices; to be decided. Same opt-in as #58, since the query tells OSV what a private repository depends on. The alternative that sends nothing is matching against OSV's per-ecosystem bulk export locally, at the cost of disk and memory on the host.

Swift: add Package.resolved (repository root and *.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/) to the manifest readers. OSV keys SwiftPM advisories under the SwiftURL ecosystem by repository URL. This also gives Swift repositories update reports.

Out of scope: Go call-graph reachability. OSV matches at module level; govulncheck stays a CI job.

closed by cmc in commit a30ca59fb3: deps: report known vulnerabilities from OSV

2026-10-31 06:30 UTC