Skip to content

fix(security): update Go and x/net vulnerability floors - #2221

Merged
JAORMX merged 4 commits into
mainfrom
fix/october-vulnerability-gate-20261009
Oct 9, 2026
Merged

JAORMX merged 4 commits into
mainfrom
fix/october-vulnerability-gate-20261009

Conversation

@JAORMX

@JAORMX JAORMX commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix the vulnerability gate independently of #2220, without modifying its branch or suppressing advisories.

  • Require Go 1.27.2 in all 12 modules and go.work. CI, releases, and the reusable action derive Go from these manifests; CI sets GOTOOLCHAIN=local.
  • Upgrade only golang.org/x/net v0.59.0 → v0.60.0 in the seven independently affected modules and their checksums.
  • Update all four Go source builders and both kind cached-image selectors; preserve existing digest pinning and align regression fixtures and source-build prerequisites.

Investigation

Failed job: https://github.com/stacklok/mecatl/actions/runs/37891769624/job/113694111073

The job used Go 1.27.0 / govulncheck v1.8.0. Rescanning unchanged base 34f485da08490d538944314966b98a76bb333190 with the same versions reproduced all 12 symbol-reachable advisories. The Darwin-only diff in #2220 did not introduce them. The failed root scan prevented subsequent module scans from running.

All records were checked against authoritative https://vuln.go.dev/ID/<ID>.json records. They were published at 2026-10-08 22:31:09 UTC, before the base's successful scan at 23:08:48 UTC. Database visibility/cache drift is the leading explanation, but the exact historical serving/cache mechanism cannot be proven from the retained logs. The gate's “NEW” means “not allowlisted,” not “introduced by this PR.”

Advisory Affected package Current → fixed Representative static reachability
GO-2026-6599 html/template Go 1.27.0 → 1.27.2 HTTP handler → x/net trace rendering → Template.Execute
GO-2026-6600 html/template Go 1.27.0 → 1.27.2 HTTP handler → x/net trace rendering → ExecuteTemplate
GO-2026-6603 stdlib and x/net HTTP/2 Go 1.27.0 → 1.27.2; x/net 0.59.0 → 0.60.0 embedded HTTP server / bearer RoundTripper → HTTP/2
GO-2026-6604 os (Windows junctions) Go 1.27.0 → 1.27.2 osfs Rename → os.Root.MkdirAll/Root.Rename
GO-2026-6605 net/http Go 1.27.0 → 1.27.2 OAuth HTTP transport → Transport.RoundTrip
GO-2026-6607 crypto/tls Go 1.27.0 → 1.27.2 embedded gRPC server → TLS ServerHandshake
GO-2026-6608 net/textproto, mime/multipart Go 1.27.0 → 1.27.2 Kubernetes SPDY → ReadResponse → ReadMIMEHeader; pprof → ReadForm
GO-2026-6610 stdlib and x/net HTTP/2 Go 1.27.0 → 1.27.2; x/net 0.59.0 → 0.60.0 bearer RoundTripper → HTTP/2 transport
GO-2026-6611 stdlib and x/net HTTP/2 Go 1.27.0 → 1.27.2; x/net 0.59.0 → 0.60.0 embedded HTTP server / bearer RoundTripper → HTTP/2
GO-2026-6612 stdlib and x/net HTTP/2 Go 1.27.0 → 1.27.2; x/net 0.59.0 → 0.60.0 embedded HTTP server / bearer RoundTripper → HTTP/2
GO-2026-6613 net/http Go 1.27.0 → 1.27.2 OAuth callback ServeHTTP → response.Write
GO-2026-6617 stdlib and x/net HTTP/2 Go 1.27.0 → 1.27.2; x/net 0.59.0 → 0.60.0 embedded HTTP server / bearer RoundTripper → HTTP/2

Paths above come from the matching-toolchain base rescan: historical CI discards raw traces. Static reachability does not establish exploitability/configuration. In particular, 6604 describes a Windows-only issue despite its Linux symbol finding. GO-2026-6609 was import/module-only and GO-2026-5932 module-only, not failures of the reachable gate.

Scope and existing updates

Current main was the same base when work began. Existing dependency PR #1950 and CI-tool PR #1962 do not update these Go or x/net versions.

Updated x/net in root, adapters, driver contracts, engine, OIDC, microVM environment, and microVM integration. The remaining five independent modules import no x/net packages (including tests); their unused transitive graph selections were deliberately left unchanged. All 12 modules get the patched Go floor.

Official Docker golang indexes were resolved and checked by digest for amd64/arm64: both report GOLANG_VERSION=1.27.2. No scanner changes, allowlist changes, unrelated upgrades, or application refactors.

Validation

Passed before push:

  • Root and standalone-engine symbol-level govulncheck v1.8.0 with Go 1.27.2: no reachable vulnerabilities, without allowlisting.
  • All 12 independent module graph checks (GOWORK=off), task tidy and idempotence.
  • Gate self-tests, focused Go-floor/source-build/kind-selector tests, execution-image pin negative fixtures, registry pin checks and shell syntax checks.
  • Go 1.27.0 correctly rejects the new workspace floor; diff checks clean.

Full validation used CI as explicitly requested. Existing CI does not independently vulnerability-scan every nested module; this preexisting coverage gap is not expanded into a CI redesign here. Final current-head checks are green.

Necessary linter compatibility follow-up

The first CI run exposed golangci-lint v2.13.1's inability to decode Go 1.27.2 export format V5. v2.13.2 still uses the incompatible x/tools v0.49.0 importer; rebuilding it alone does not fix this. Upgrade the installer and both mecatequi pins to v2.14.0, the first released version with x/tools v0.50.0/V5 support, and verify all four installer archive checksums against upstream. This is required by the patched Go toolchain, not an unrelated upgrade.

Final CI: head a02adbbdec303853a51667eb4036f113ed378034

Final CI run: 36 passed, 0 failed, 4 expected skips, 0 pending across PR checks.

  • Passed: Analysis, Lint, govulncheck, race tests, standalone modules, build, docs, macOS smoke checks, MicroVM and Kubernetes E2E, and performance gate.
  • The upgraded gosec exposed G703 false positives on operator-selected storage roots and fixed .git ancestor discovery. Independent security reviews traced source authority, constructors, and callers. With explicit operator approval, added statement-local rationales in credentialstore, clientauth, jsonlstore, and mecatui state discovery; no behavior changes, global rule exclusions, or vulnerability-advisory allowlist changes.
  • The official CI golangci-lint release binary exposed a remaining registry-root finding not reported by a source-installed binary of the same version. After fixing that annotation, CI-exact and uncapped official-binary lint passed for root and all 11 nested modules; focused race tests passed. The precise cause of the binary/analyzer discrepancy remains unproven, but final CI confirms the remediation.
  • The earlier unchanged MicroVM test deadlock did not recur on subsequent changed heads. No unrelated test changes or blind reruns were made.
  • Four expected skips are live/OpenRouter jobs and the main-only performance trend, not failed vulnerability scans.

Require Go 1.27.2 throughout the workspace and source builders, and update affected independent modules to golang.org/x/net v0.60.0. Keep builder-pin fixtures aligned without weakening vulnerability gates.

Co-authored-by: Mecatl <[email protected]>
JAORMX and others added 3 commits October 9, 2026 10:33
Use the first released linter with x/tools v0.50.0 and its V5 unified export-data decoder. Rebuilding v2.13.1 alone retains the v0.49.0 importer and cannot decode the patched toolchain's export data. Align the mecatequi pins and refresh all four release archive checksums.

Co-authored-by: Mecatl <[email protected]>
Scope the G703 exception to the registry directory chmod. The production caller derives the root from the operator's XDG configuration directory, not server input. Clarify the adjacent mkdir annotation on the same basis.

Co-authored-by: Mecatl <[email protected]>
@JAORMX
JAORMX merged commit e9c216a into main Oct 9, 2026
40 checks passed
@JAORMX
JAORMX deleted the fix/october-vulnerability-gate-20261009 branch October 9, 2026 09:34
This was referenced Oct 13, 2026
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.

2 participants