$ the-wire · showcase
HTTP/2 trailer fix lands with CVE-2026-97047
By RepoJournal · Filed · About Go · Composed from the cited sources · methodology
Go's HTTP/2 server no longer does an O(N^2) linear scan per trailer when deduplicating a returned Trailer header, closing CVE-2026-97047, while pkgsite reworks how it decides a module change is breaking.
net/http/internal/http2: avoid O(N^2) in trailer deduplication golang/go
Damien Neil replaced the repeated linear search with a compaction over the already-sorted trailer list, so deduplication cost is now O(N) on top of the existing sort. The commit credits Thinnawarth Mathuros (benzdeus) for the report and fixes CVE-2026-97047; if you terminate HTTP/2 in Go with handlers that set trailers, take the fix.
internal/api: filter vulnerabilities using JSON field names golang/pkgsite
ServeVulnerabilities now converts the []vuln.Vuln slice to []Vulnerability before calling filterStruct, which previously had no json struct tags to work from. Filters now match the documented field names (id, details) instead of the Go field names (ID, Details), so existing vulnerability queries written against the docs start returning results.
internal/breakings: prepare for symbol documentation golang/pkgsite
Jonathan Amsterdam writes that "authors often write comments to exempt their exported symbols from compatibility," which the breakings package could not see until now. Recording package and symbol documentation is the first step in a series meant to increase the accuracy of the breaking-changes calculation, and newlines in doc strings are flattened to spaces for upcoming matching.
internal/gcimporter: size the output buffer before writing export data golang/tools
iexportCommon copied its sections into an empty bytes.Buffer one at a time, so the buffer regrew repeatedly and IExportShallow returned slices with up to twice the needed capacity, which gopls keeps in filecache's in-memory cache. Sizing the buffer once up front drops the memory held by those slices from 19.9MB to 16.0MB (-20%) for kubernetes@v1.24.0.
simd/archsimd: rename MulWidenLo to MulWiden golang/go
MulWidenLo becomes MulWiden, matching ExtendTo* having replaced ExtendLo*, since the operation acts on the low-indexed elements either way. The old archsimd methods stay on arm64 and wasm as deprecated wrappers that go fix can inline.
collection/sorted: clarify iteration behavior golang/exp
Elsewhere the long tail is routine: golang/tools removed the old gcimporter I{Ex,Im}Port{Data,Shallow} API with no behavior change, and golang/exp's collection packages got JSON serialization for sorted.Map, a DeleteFunc fix that re-finds its place from the root after the callback modifies the map, plus several helpers factored out and iteration docs clarified.
Action items