Skip to content

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
mainfrom
linear/sou-1430-sourcebot-devsourcebot-cve-2026-42502-parsing-arbitrary-6c2f
Draft

chore: upgrade golang.org/x/net to ^0.55.0 to address CVE-2026-42502#1364
linear-code[bot] wants to merge 1 commit into
mainfrom
linear/sou-1430-sourcebot-devsourcebot-cve-2026-42502-parsing-arbitrary-6c2f

Conversation

@linear-code

@linear-code linear-code Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

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 via Render can produce an unexpected tree, enabling XSS in apps that sanitize input HTML before rendering.

x/net enters the Sourcebot image only through the Go build of the vendored zoekt submodule, where it's pinned at v0.53.0. The proper fix is to bump it in sourcebot-dev/zoekt's go.mod and 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/...).

⚠️ The override is marked as temporary in the Dockerfile and should be removed once vendor/zoekt pins x/net >= v0.55.0 directly.

This mirrors the approach in #1363 (same pattern for x/crypto).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants