Install
openclaw skills install go-security-vulnerabilityIdentify, assess, and fix security vulnerabilities in Go modules using govulncheck. Handle common vulnerabilities like JWT issues and ensure application stability during fixes.
openclaw skills install go-security-vulnerabilityUse Go tooling to identify, assess, and fix security vulnerabilities in Go modules. This skill helps detect and remediate vulnerabilities while maintaining application functionality.
Scan for vulnerabilities in your Go project:
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
Check specific modules for known vulnerabilities:
govulncheck -show verbose ./...
Update vulnerable packages to secure versions:
go get -u vulnerable/package@latest
go mod tidy
For vulnerabilities in transitive dependencies:
go mod why vulnerable/package # Understand why it's included
go mod edit -replace vulnerable/package=newer-version # Replace if needed
go mod tidy
If a dependency is unused or can be replaced:
go mod tidy to clean up unused dependenciesAfter applying fixes:
# Verify no vulnerabilities remain
govulncheck ./...
# Ensure application still builds
go build ./...
# Run tests to verify functionality
go test ./...
github.com/golang-jwt/jwt GO-2025-3553 (excessive memory allocation)golang.org/x/oauth2 alternativesgo vuln to check for stdlib vulnerabilitiesgovulncheckgo get -ugo mod tidy to remove unused dependencies