chore: upgrade golang.org/x/net to ^0.55.0 to address CVE-2026-42502#1364
Draft
linear-code[bot] wants to merge 1 commit into
Draft
Conversation
…VE-2026-42502 Generated with [Linear](https://linear.app/sourcebot/issue/SOU-1430/sourcebot-devsourcebot-cve-2026-42502-parsing-arbitrary-html-which-is#agent-session-5ec895d8) Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
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.
Fixes SOU-1430
Addresses CVE-2026-42502 (HIGH) in
golang.org/x/net(v0.53.0 → v0.55.0), where HTML parsed and then re-rendered viaRendercan produce an unexpected tree, enabling XSS in apps that sanitize input HTML before rendering.x/netenters the Sourcebot image only through the Go build of the vendoredzoektsubmodule, where it's pinned at v0.53.0. The proper fix is to bump it insourcebot-dev/zoekt'sgo.modand then bump the submodule pointer here, but that requires a commit in the zoekt repo. As a self-contained mitigation, this forces the patched version into the zoekt build via the Dockerfile (go get golang.org/x/net@v0.55.0), so the compiled binaries embed v0.55.0. Verified the bump builds cleanly (go get golang.org/x/net@v0.55.0 && go build ./cmd/...).vendor/zoektpinsx/net >= v0.55.0directly.This mirrors the approach in #1363 (same pattern for
x/crypto).