Repository navigation
chore(deps): remediate known vulnerabilities in Go, npm, and base images - #214
Merged
Merged
Conversation
Sweep of both dependency trees plus the container base images. Go validator (govulncheck: 12 reachable vulnerabilities -> 0): - Bump golang.org/x/net v0.38.0 -> v0.58.0 (IDNA punycode host confusion GO-2026-5026, HTTP/2 SETTINGS infinite loop GO-2026-4918) and golang.org/x/text v0.23.0 -> v0.41.0 (GO-2026-5970). x/net requires a newer language version, so the go directive moves 1.23.0 -> 1.25.0. - Bump the builder image golang:1.23-alpine3.21 -> golang:1.26-alpine3.24. This is what fixes the standard-library half of the findings: the shipped binary's stdlib comes from the builder, and the crypto/tls, crypto/x509, net/http, net/url, encoding/asn1, mime and net/textproto fixes land in 1.26.3-1.26.6. Verified with `GOTOOLCHAIN=go1.26.7 govulncheck ./...` -> no vulnerabilities found, which also clears the imported-but-uncalled and required-module findings, not just the reachable ones. Docs / npm (npm audit: 37 -> 17): - `npm audit fix` resolved 20 within existing semver ranges, including all three criticals (vitest arbitrary file read via the UI server, shell-quote, websocket-driver) plus undici, ws, postcss, webpack-dev-server, js-yaml, brace-expansion, svgo, nanoid and qs. - Record the fixes in package.json so they survive a lockfile regeneration rather than living only in the lock: vitest -> ^3.2.7, and refresh the stale override floors postcss ^8.5.10 -> ^8.5.26 and vite ^6.4.2 -> ^6.4.3. The 17 remaining advisories are a single unfixable upstream pair counted once per inheriting package: image-size ICNS and JXL/HEIF parser infinite loops (GHSA-w3rx-r6r6-pgpr, GHSA-5p2g-fcmc-qvqq). The advisory range is `*` and the latest release is still affected, so there is no version to pin to. It enters only via @docusaurus/core -> @docusaurus/mdx-loader, runs at build time against repo-controlled images, and never ships -- the runtime image is nginx serving static files. Base images and runtime floor: - docs builder node:20.19-alpine3.21 -> node:22-alpine3.24 and CI node-version 20 -> 22; Node 18 and 20 are both past EOL, so package.json engines moves >=18.0 -> >=22.0 to match. - docs runtime nginx:1.27-alpine3.21 -> nginx:1.31-alpine3.24. This stage ships, so it picks up current musl/openssl patches. npm test (4 passed), npm run build, go build, go vet and go test all pass. Docker was unavailable locally, so the image builds themselves are left to the PR's docs.yml and validator.yml runs. Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com> Assisted-by: claude-code/claude-opus-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Sweep of both dependency trees plus the container base images, driven by
govulncheckandnpm audit.Go validator — 12 reachable vulnerabilities → 0
golang.org/x/netv0.38.0 → v0.58.0 (IDNA punycode host confusion GO-2026-5026, HTTP/2SETTINGSinfinite loop GO-2026-4918) andgolang.org/x/textv0.23.0 → v0.41.0 (GO-2026-5970). x/net needs a newer language version, so thegodirective moves 1.23.0 → 1.25.0.golang:1.23-alpine3.21→golang:1.26-alpine3.24. This is what fixes the standard-library half — the shipped binary's stdlib comes from the builder image, and thecrypto/tls,crypto/x509,net/http,net/url,encoding/asn1,mimeandnet/textprotofixes land in 1.26.3–1.26.6. Bumping only the modules would have left 11 of the 12 findings in place.Verified against the toolchain the new base image provides:
That also clears the imported-but-uncalled and required-module findings, not only the reachable ones.
Docs / npm — 37 → 17
npm audit fixresolved 20 within existing semver ranges, including all three criticals (vitestarbitrary file read via the UI server,shell-quote,websocket-driver) plusundici,ws,postcss,webpack-dev-server,js-yaml,brace-expansion,svgo,nanoidandqs.Those fixes are also recorded in
package.jsonso they survive a lockfile regeneration rather than living only in the lock:vitest→^3.2.7, and the stale override floorspostcss^8.5.10→^8.5.26andvite^6.4.2→^6.4.3.The 17 that remain have no fix
They are a single unfixable upstream advisory pair, counted once per inheriting package:
image-sizeICNS and JXL/HEIF parser infinite loops (GHSA-w3rx-r6r6-pgpr, GHSA-5p2g-fcmc-qvqq). The advisory range is*and the latest release (2.0.2) is still affected, so there is no version to pin to — the other 16 entries are just@docusaurus/*packages inheriting the flag.Exposure here is low and I chose to leave it visible rather than paper over it:
image-sizeenters only via@docusaurus/core → @docusaurus/mdx-loader, runs at build time against repo-controlled images, and never ships — the runtime image is nginx serving static files. Exploiting it would require first landing a malicious.icns/.jxl/.heifthrough a merged PR.Base images and runtime floor
node:20.19-alpine3.21→node:22-alpine3.24, and CInode-version20 → 22. Node 18 and 20 are both past EOL, soengines.nodemoves>=18.0→>=22.0to match.nginx:1.27-alpine3.21→nginx:1.31-alpine3.24. This stage ships, so it picks up current musl/openssl patches.Verification
npm test(4 passed),npm run build,go build,go vetandgo testall pass. The build's broken-anchor warnings in the Italian docs are pre-existing and unrelated.Docker was unavailable locally, so the image builds themselves are unverified on my side — they are left to this PR's
docs.ymlandvalidator.ymlruns, both of which build (without pushing) onpull_request. Worth confirming those go green before merge, since this PR moves three base images.Reviewer notes
godirective bump to 1.25.0 was forced by x/net, not chosen. Any other consumer of this module needs Go ≥ 1.25.engines.node >=22.0is stricter than before; contributors still on Node 20 will now get an npm warning.aruba-credsmirrored into every participant vcluster (AGENTS.md accepts this with mandatory post-workshop rotation), the unauthenticated public/api/dashboard(mitigated by the 10s cache, validator: /api/dashboard is unauthenticated and can stampede every pair vcluster #113), andgitops/solo/rbac.yamlgranting cluster-wide read on*— read-only, laptop-local k3d, and narrowing it would break the dynamic-client checks against arbitrary Crossplane CRDs. No committed credentials; nopull_request_targetor untrusted interpolation in workflows.🤖 Generated with Claude Code