Update dependencies and address CVEs #1004
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
This PR updates dependencies and addresses security issues (CVEs):
Before update:
After the update:
➜ nginx-prometheus-exporter git:(chore/update-dependencies) ✗ govulncheck -show verbose -mode binary nginx-prometheus-exporter Scanning your binary for known vulnerabilities... Fetching vulnerabilities from the database... Checking the binary against the vulnerabilities... The package pattern matched the following root package: github.com/nginx/nginx-prometheus-exporter Govulncheck scanned the following 25 modules and the go1.24.0 standard library: github.com/nginx/nginx-prometheus-exporter@v1.4.2-0.20250307061232-2871b8d6d868+dirty github.com/alecthomas/kingpin/v2@v2.4.0 github.com/alecthomas/units@v0.0.0-20211218093645-b94a6e3cc137 github.com/beorn7/perks@v1.0.1 github.com/cespare/xxhash/v2@v2.3.0 github.com/coreos/go-systemd/v22@v22.5.0 github.com/jpillora/backoff@v1.0.0 github.com/klauspost/compress@v1.17.11 github.com/mdlayher/vsock@v1.2.1 github.com/munnerz/goautoneg@v0.0.0-20191010083416-a7dc8b61c822 github.com/mwitkow/go-conntrack@v0.0.0-20190716064945-2f068394615f github.com/nginx/nginx-plus-go-client/v2@v2.3.0 github.com/prometheus/client_golang@v1.21.1 github.com/prometheus/client_model@v0.6.1 github.com/prometheus/common@v0.62.0 github.com/prometheus/exporter-toolkit@v0.14.0 github.com/xhit/go-str2duration/v2@v2.1.0 golang.org/x/crypto@v0.35.0 golang.org/x/net@v0.36.0 golang.org/x/oauth2@v0.27.0 golang.org/x/sync@v0.11.0 golang.org/x/sys@v0.30.0 golang.org/x/text@v0.22.0 google.golang.org/protobuf@v1.36.1 gopkg.in/yaml.v2@v2.4.0 No vulnerabilities found.
Note that the security fixes in the indirect dependencies require bumping Go version to
v1.23
Checklist
Before creating a PR, run through this checklist and mark each as complete.