CVE lookups (OSV, NVD) bypass guarded_net #469

Closed
opened 2026-10-05 21:54:42 +00:00 by sharang · 0 comments
Owner

The CVE scanner (compliance-agent/src/pipeline/cve.rs) calls api.osv.dev (querybatch, vulns/{id}) and NVD with the plain agent HTTP client. Other outbound calls (since #468 also the nuget.org license lookup) go through guarded_net::guarded_client_builder with NetGuard::check_url per request.

Tasks

  • Build the CVE scanner's client from guarded_client_builder; check_url before each request
  • Per-request and connect timeouts, body size cap (as in sbom/nuget_license.rs)
  • Same for any other outbound call still on the plain client (audit reqwest::Client construction in compliance-agent)
  • Document the egress list in docs/reference/tools.md in one place
  • Test: a redirect or URL to a private/internal address is refused

Found while reviewing #468.

The CVE scanner (`compliance-agent/src/pipeline/cve.rs`) calls api.osv.dev (querybatch, vulns/{id}) and NVD with the plain agent HTTP client. Other outbound calls (since #468 also the nuget.org license lookup) go through `guarded_net::guarded_client_builder` with `NetGuard::check_url` per request. ## Tasks - Build the CVE scanner's client from `guarded_client_builder`; `check_url` before each request - Per-request and connect timeouts, body size cap (as in `sbom/nuget_license.rs`) - Same for any other outbound call still on the plain client (audit `reqwest::Client` construction in compliance-agent) - Document the egress list in `docs/reference/tools.md` in one place - Test: a redirect or URL to a private/internal address is refused _Found while reviewing #468._
sharang added the security label 2026-10-05 21:54:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#469