Suppress a known vulnerability in OSV-Scanner using an osv-scanner.toml IgnoredVulns entry with an expiry date

domain: google.github.io · 6 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Place an osv-scanner.toml file in the same directory as the lockfile/manifest being scanned (config does not propagate to child directories); to apply one config across multiple directories instead, pass --config=/path/to/config.toml to override per-directory discovery for the whole scan.
  2. Add a [[IgnoredVulns]] table for each vulnerability to suppress, setting id to the OSV/CVE/GHSA identifier you want ignored.
  3. Set ignoreUntil to a bare TOML local date in YYYY-MM-DD format, unquoted (e.g. ignoreUntil = 2026-11-09) — not an RFC3339 timestamp string. This is optional; once the date passes, the ignore expires and osv-scanner resumes failing on that id.
  4. Add a reason string field documenting why the exception exists, for audit/reviewability.
  5. Be aware that ignoring a vulnerability id also ignores any vulnerabilities OSV considers aliases of that id, so check the aliases in scan output before assuming a suppression is narrowly scoped.
  6. Re-run osv-scanner and confirm the suppressed id no longer appears in findings until ignoreUntil passes.

Known gotchas

Related routes

Configure an osv-scanner.toml file to ignore specific vulnerabilities and set scanner behavior for a project
osv.dev · 6 steps · unrated
Configure OSV-Scanner to ignore or override the license of a specific package using osv-scanner.toml PackageOverrides
google.github.io · 5 steps · unrated
Configure OSV-Scanner to run in air-gapped CI using pre-downloaded offline vulnerability databases combined with license allowlist enforcement
google.github.io/osv-scanner · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans