← All notes

Finding vulnerable dependencies with govulncheck

Answer: govulncheck checks a Go module against the Go vulnerability database (vuln.go.dev) and reports only vulnerabilities your code actually reaches, based on which of your functions transitively call vulnerable functions.

Run it

go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...

The database

The Go vulnerability database collects reports from many sources, including direct reports from package maintainers. The Go security team reviews each entry so descriptions and affected functions are accurate.

Workflow

  1. Run govulncheck in CI.

To report a vulnerability in Go itself, follow the Go Security Policy.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Go Authors (go.dev), Go Vulnerability Management - The Go Programming Language, CC BY 4.0 (go.dev text); The Go Authors (go.dev), Vulnerability Management for Go - The Go Programming Language, CC BY 4.0 (go.dev text).

Cite this

Permanent ID: iil:note:vfykpjtc

iinventedlight. 2026. "Finding vulnerable dependencies with govulncheck." iinventedlight Library, iil:note:vfykpjtc, version of 2026-11-04. https://iinventedlight.com/library/notes/go-vulncheck/. License: CC-BY-4.0.

@misc{iil_note_vfykpjtc,
  author = {{iinventedlight}},
  title = {{Finding vulnerable dependencies with govulncheck}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/go-vulncheck/},
  note = {Permanent ID iil:note:vfykpjtc. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/go-vulncheck.md.