Skip to content

fix: patch root x/net dependency for CVE-2026-78661 - #3787

Merged
jiparis merged 1 commit into
mainfrom
chainloop/fix-cve-2026-78661-20261106-082819
Nov 6, 2026
Merged

jiparis merged 1 commit into
mainfrom
chainloop/fix-cve-2026-78661-20261106-082819

Conversation

@chainloop-platform

@chainloop-platform chainloop-platform Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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, then GRYPE_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, then GRYPE_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 tidy completes successfully in the root module. go mod tidy -diff exits 0 with no differences, confirming the generated manifest and checksums are current.
  • go test golang.org/x/net/html passes. go list -m -json golang.org/x/net confirms v0.62.0. git diff --check passes. Full application tests are not run.

Risk Assessment

View the risk assessment in Chainloop

View guided diff

@chainloop-platform

Copy link
Copy Markdown
Contributor Author

AI Session Checks — ⚠️ no AI session found

Missing AI Coding Sessions

This organization requires every PR to be backed by a Chainloop Trace AI coding session, and none was found for this one.

Please make sure the AI coding session evidence has been sent by the Chainloop CLI, or add the skip-ai-session label to this PR to bypass this check.

Learn more about Chainloop Trace.


Powered by Chainloop and Chainloop Trace

@jiparis
jiparis merged commit 4a1de49 into main Nov 6, 2026
14 of 15 checks passed
@jiparis
jiparis deleted the chainloop/fix-cve-2026-78661-20261106-082819 branch November 6, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant