| name | govulncheck |
| description | Official Go vulnerability scanner by the Go team. Use when auditing Go repositories to check for known vulnerabilities in dependencies using the Go vulnerability database. |
govulncheck — Go Vulnerability Scanner
Basic Usage
govulncheck ./...
govulncheck ./internal/...
Common Options
govulncheck ./...
govulncheck ./... -json
govulncheck ./... -mode=binary
govulncheck ./... -full
What It Detects
- Vulnerabilities in direct and indirect Go dependencies
- Uses the official Go Vulnerability Database (govulncheck.golang.org)
- Only scans code within
$GOPATH or module cache
When to Use
- Go dependency audit — mandatory for Go projects
- Check
go.mod / go.sum for known CVEs
- Compare vulnerability count against benchmark Go projects
- Generate security findings for
issues.json
Examples
govulncheck ./... -json > govulncheck.json
govulncheck ./... 2>&1 | grep -E "^(Found|No vulnerabilities)"
govulncheck ./cmd/... ./internal/...
Prerequisites
govulncheck requires the Go toolchain. Download and install from https://go.dev/dl/