Skip to content

build(deps): move Go to 1.26.9 for GO-2026-6617 - #313

Merged
JonasBorgesLM merged 1 commit into
developfrom
fix/go-1.26.9-312
Oct 9, 2026
Merged

JonasBorgesLM merged 1 commit into
developfrom
fix/go-1.26.9-312

Conversation

@JonasBorgesLM

Copy link
Copy Markdown
Owner

Resumo

Closes #312. Segurança: CVE-2026-97032 / GO-2026-6617, um crash no servidor HTTP/2 do net/http.

  • go.mod, Dockerfile e web/Dockerfile: 1.26.6 → 1.26.9. Como a CI usa go-version-file, o build, os testes e as imagens rodam nessa versão.
  • Por que não 1.27.2 (o que o usher fez): nenhuma release do staticcheck nem o master do go-tools leem o export data do Go 1.27, e o gosec v2.28.0 também não. Subir para 1.27.2 removeria o gate de lint. O resíduo (um build local com 1.27.0/1.27.1 satisfaz o piso) e a condição para reabrir estão em docs/DECISIONS.md.
  • O DECISIONS.md também registra um falso positivo G703 que o gosec mais novo vai apontar no spaHandler, para quando a versão dele for atualizada.

Exposição baixa: nenhum binário serve TLS nem h2c.

Plano de teste (todos com o código de saída conferido)

  • go build e go vet em go1.26.9; go mod tidy -diff limpo
  • staticcheck@v0.8.1, com e sem -tags=integration: exit 0
  • gosec@v2.28.0, com e sem -tags=integration, exatamente como o make gosec: exit 0, 0 issues
  • govulncheck@v1.7.0: exit 0
  • go test -race ./...
  • docker build . (imagem da API) compila em golang:1.26.9-alpine
  • CI deste PR, incluindo a suíte de integração

🤖 Generated with Claude Code

GO-2026-6617 (CVE-2026-97032, an HTTP/2 server crash in net/http)
affects every release before 1.26.9 and 1.27.0-1.27.1. go.mod and both
images were on 1.26.6; CI reads the version from go.mod, so build, tests
and images now all run on 1.26.9.

1.27.2 would exclude both lines' vulnerable releases, but no staticcheck
release (nor go-tools master) reads Go 1.27 export data yet, nor does
gosec v2.28.0, so it would cost the whole lint gate. The residual (a
local 1.27.0/1.27.1 build satisfies the floor) and the reopening
condition are recorded in docs/DECISIONS.md.

Closes #312

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant