fix(security): bump golang.org/x/net to v0.62.0, ignore partner test token #154

Merged
amiryahaya merged 1 commit from fix/security-scan-260 into main 2026-11-03 17:07:11 +01:00
Owner

Fixes the failing security.yml run #260 on main (f3f59f5). All three jobs failed.

Changes

  • govulncheck GO-2026-6860: quadratic text-node coalescing in x/net/html. Our code reaches it through legacyimport.PlainText → html.Parse.
  • Trivy CVE-2026-78669 (HIGH): HTTP/2 SETTINGS frame denial of service.
  • Both are fixed by bumping golang.org/x/net from v0.56.0 to v0.62.0. In go.sum, x/sys also moves to v0.49.0 as a dependency of x/net.
  • gitleaks: the finding is the made-up invitation token tok_SECRET_123 in web/apps/partner/src/AcceptInvitationPage.test.tsx, added in #152. It is the same false positive as the admin entry, so its fingerprint goes in .gitleaksignore with a reason.

Checks (local)

  • gitleaks 8.21.2 (the version CI pins), full history: no leaks found.
  • govulncheck v1.1.4: no vulnerabilities found.
  • go vet is clean, go mod tidy and go mod verify are clean, and make cover passes.
  • Coverage: 91.5% (minimum 80%). No Go code changed.
  • Trivy was not run locally. The version it flagged is gone.

Review

Dual-pass review:

  • Ponytail: nothing to fix.
  • Superpowers correctness: no critical or important issues.
  • Minor: TestPlainText has a single case. Optionally, regenerate the seed from the legacy dump and confirm the diff is empty.

security.yml runs only on pushes to main, so it confirms this fix after merge.

🤖 Generated with Claude Code

Fixes the failing `security.yml` run #260 on `main` (f3f59f5). All three jobs failed. ## Changes - **govulncheck** GO-2026-6860: quadratic text-node coalescing in `x/net/html`. Our code reaches it through `legacyimport.PlainText` → `html.Parse`. - **Trivy** CVE-2026-78669 (HIGH): HTTP/2 SETTINGS frame denial of service. - Both are fixed by bumping `golang.org/x/net` from v0.56.0 to v0.62.0. In `go.sum`, `x/sys` also moves to v0.49.0 as a dependency of x/net. - **gitleaks**: the finding is the made-up invitation token `tok_SECRET_123` in `web/apps/partner/src/AcceptInvitationPage.test.tsx`, added in #152. It is the same false positive as the admin entry, so its fingerprint goes in `.gitleaksignore` with a reason. ## Checks (local) - gitleaks 8.21.2 (the version CI pins), full history: no leaks found. - govulncheck v1.1.4: no vulnerabilities found. - `go vet` is clean, `go mod tidy` and `go mod verify` are clean, and `make cover` passes. - **Coverage: 91.5%** (minimum 80%). No Go code changed. - Trivy was not run locally. The version it flagged is gone. ## Review Dual-pass review: - Ponytail: nothing to fix. - Superpowers correctness: no critical or important issues. - Minor: `TestPlainText` has a single case. Optionally, regenerate the seed from the legacy dump and confirm the diff is empty. `security.yml` runs only on pushes to `main`, so it confirms this fix after merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(security): bump golang.org/x/net to v0.62.0, ignore partner test token
All checks were successful
ci / changes (pull_request) Successful in 15s
ci / clients (pull_request) Has been skipped
ci / web-ticket (pull_request) Has been skipped
ci / web-admin (pull_request) Has been skipped
ci / web-partner (pull_request) Has been skipped
ci / api (pull_request) Successful in 13m38s
ci / ci-gate (pull_request) Successful in 3s
8be18a7c47
security.yml #260 failed on main (f3f59f5):
- govulncheck GO-2026-6860 (html.Parse via legacyimport.PlainText) and
  Trivy CVE-2026-78669 (HTTP/2 SETTINGS DoS): x/net v0.56.0 -> v0.62.0.
- gitleaks: the fake "tok_SECRET_123" fixture in the partner
  AcceptInvitationPage.test.tsx (from #152); fingerprint added to
  .gitleaksignore like the admin one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/kws!154
No description provided.