← Back to Pull requests

fix: bump golang.org/x/mod to v0.40.0 and go toolchain to 1.26.7 #110

Closed
unknown closed this pull request without merging on Aug 26, 2026 23:34 UTC
View on GitHub
unknown unknown commented on Aug 26, 2026 20:35 UTC
Author

Description

Clears the four open Trivy alerts (#107–#110) and the failing Go Vulnerability Check.

1. golang.org/x/mod → v0.40.0

All four Trivy alerts are the same root cause, reported twice because Trivy scans each module independently:

| CVE | Issue |
|---|---|
| CVE-2026-56864 | A malicious GOSUMDB could serve arbitrary module content undetected |
| CVE-2026-56865 | A malicious GOPROXY could forge up to two sumdb entries |

Bumped in both go.mod (v0.38.0) and tools/go.mod (v0.37.0). x/mod is indirect in both, and neither path reaches the vulnerable sumdb code — root pulls it in via test deps, tools reaches only x/mod/modfile through hc-install — so real-world exposure was low.

go mod tidy pulled several sibling x/ modules forward in the root module as a consequence. These were not hand-picked; they are what tidy resolved:

  • x/crypto 0.54.0 → 0.55.0

  • x/net 0.57.0 → 0.58.0

  • x/text 0.40.0 → 0.41.0

  • x/tools 0.48.0 → 0.49.0
  • 2. go directive → 1.26.7

    govulncheck flagged 5 stdlib vulnerabilities reachable from provider code, all fixed in go1.26.6:

  • GO-2026-6090 — crypto/tls, post-handshake message flooding

  • GO-2026-6088 — encoding/xml, missing recursion depth guard

  • GO-2026-5972 — encoding/asn1, unbounded recursion depth

  • GO-2026-5026 — x/net/idna ASCII-only Punycode labels, via net/http

  • net/url — URL.Parse issue
  • CI resolves its toolchain from go-version-file: go.mod, so the go directive is the lever. Moved to 1.26.7, the current patch release.

    [!NOTE]

    This check has been failing on main since 2026-08-17 — it is not a regression from the x/mod bump, but it blocks this PR, so it is fixed here.

    Verification

  • go build ./... — clean

  • go vet ./... — clean

  • go test ./... — all passing

  • govulncheck ./... — No vulnerabilities found
  • Jira tickets and links

    <!---

  • Jira: PROJ-XXX

  • RFC: [VOLT-XXX]()

  • -->

    Checklist


  • Jira: If this PR has a change associated with a ticket, include it in the section above

  • RFC: If this change is related to an RFC, include it as a link above
  • Diff: 267 lines (+200 / -67) across 3 files Reviewer: sdahal-bt Review duration: 178m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 267 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.334
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #110"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.6% · Safe to merge
    15.6%