fix: patch root x/net dependency for CVE-2026-78661
Merged
CH
1mo ago+3+3+0123456789-3-3-0123456789
Summary
Upgrade the assessed root module's golang.org/x/net dependency from v0.61.0 to v0.62.0, the first fixed release for GO-2026-6860 (CVE-2026-78661). Keep the change limited to the root dependency requirement and its generated checksums.
Vulnerability Fixed
GO-2026-6860-golang.org/x/net / CVE-2026-78661 — HIGH severity. Repeated text-node coalescing in the HTML parser can cause quadratic allocations and copying, exhausting CPU or memory when processing crafted HTML.
Changes Made
- Update golang.org/x/net from v0.61.0 to v0.62.0 in go.mod using the package manager.
- Regenerate go.sum with go mod tidy; replace only the two checksums for the affected release.
- Confirm the published Go advisory identifies v0.62.0 as the first fixed version and the module registry supplies that release. Its minimum Go version and dependency requirements match v0.61.0.
Verification
- Baseline:
syft dir:repo -o cyclonedx-json=verify/sbom-before.json, thenGRYPE_DB_AUTO_UPDATE=false timeout 120 grype sbom:verify/sbom-before.json --only-fixed -o json. The baseline reports GO-2026-6860 and its CVE-2026-78661 alias for golang.org/x/net v0.61.0 at /go.mod and v0.60.0 at /extras/dagger/go.mod. The initial scan with automatic database updates did not complete and was terminated; both completed comparison scans use the existing database with updates disabled. - After remediation:
syft dir:repo -o cyclonedx-json=verify/sbom-after.json, thenGRYPE_DB_AUTO_UPDATE=false timeout 120 grype sbom:verify/sbom-after.json --only-fixed -o json. Both commands complete successfully. The advisory no longer appears for the assessed root module, now resolved to v0.62.0. - Classification: still-present for the repository-wide scan, although resolved for the assessed root module. Caveat: the separate extras/dagger/go.mod still pins v0.60.0 and continues to trigger this advisory. That separate module is outside the assessment's explicitly scoped v0.61.0 finding and is unchanged by this PR. This is not a claim that the entire repository is free of the advisory.
go mod tidycompletes successfully in the root module.go mod tidy -diffexits 0 with no differences, confirming the generated manifest and checksums are current.go test golang.org/x/net/htmlpasses.go list -m -json golang.org/x/netconfirms v0.62.0.git diff --checkpasses. Full application tests are not run.