Skip to content

security: PR #425 (klauspost/compress v1.18.7, CVE-2026-63209) cannot merge — go.sum not tidy in all three modules #429

Closed

Description

@dezren39

Finding

Renovate PR #425 — "chore(deps): update module github.com/klauspost/compress to v1.18.7 [security]" (#425, single commit 040185b2a3cdb8c14787cf6c5413bce889437813) — cannot merge as-is. Its go.sum changes only add the v1.18.7 hashes and leave the old version's hashes behind, so go mod tidy rewrites every touched module and the repo's tidy gates fail. The High-severity fix it carries is therefore blocked, and current main still ships the vulnerable versions.

Not covered by #311: that issue (filed 2026-10-18) is a generic triage of older stale Renovate PRs and predates #425 (created 2026-10-20); it does not name this PR, this CVE, or the tidy defect.

Evidence

  • PR chore(deps): update module github.com/klauspost/compress to v1.18.7 [security] #425 touches 6 files, all go.mod/go.sum: pkgs/graph, pkgs/identity, pkgs/map.
    • pkgs/graph/go.mod:3: go 1.21.3 → go 1.24; compress v1.17.2 → v1.18.7
    • pkgs/map/go.mod:3: go 1.21.3 → go 1.24; compress v1.17.2 → v1.18.7
    • pkgs/identity/go.mod:3: go 1.22 → go 1.24; compress v1.17.7 → v1.18.7
    • Each go.sum gains the two v1.18.7 lines but keeps the old v1.17.2 / v1.17.7 h1: and /go.mod lines.
  • CI on the PR head is red on exactly that defect (check runs via gh pr view 425):
    • "Go module tidy" FAILURE — run 39459998258: go mod tidy changed go.mod or go.sum; commit the tidy changes. M pkgs/graph/go.sum
    • "go build" (map) FAILURE — run 39459998232: tidy's diff deletes github.com/klauspost/compress v1.17.2 h1:… and v1.17.2/go.mod h1:… from pkgs/map/go.sum
    • "go build (sqlite)" and "go build (libsql)" (identity) FAILURE — run 39459998387: same tidy diff deleting the v1.17.7 lines from pkgs/identity/go.sum
    • The passing checks (treefmt, Nix flake evaluation, auto-assign) do not exercise go mod tidy.
  • Verified on current main (4b098501, via the contents API): all three modules still require the old compress — graph v1.17.2 (go 1.21.3), map v1.17.2 (go 1.21.3), identity v1.17.7 (go 1.22).
  • The update fixes CVE-2026-63209 / GHSA-259r-337f-4rfw (CVSS 7.5 High): signed-integer overflow in s2.NewDict() in klauspost/compress ≤ v1.18.6 bypasses repeat validation and reaches an out-of-bounds unsafe.Pointer access in Dict.Encode() (DoS / SIGSEGV). Full advisory text is in PR chore(deps): update module github.com/klauspost/compress to v1.18.7 [security] #425's body.

Why it matters

A ready-made fix for a High-severity advisory sits unmergeable because of two stale lines per go.sum, so the vulnerable dependency stays on main indefinitely — exactly the stale-security-PR pattern #311 warns about, except this one is new and has a known, mechanical cause. The PR also silently raises the go directive in three modules (1.21.3 / 1.22 → 1.24) as a side effect of the new compress release; that toolchain jump should be a deliberate, checked decision, not an unnoticed Renovate side effect.

Acceptance criteria

Activity

  1. dezren39 commented on Oct 20, 2026

    @dezren39
    MemberAuthor

    Fixed by completing PR #425, now MERGED (merge commit d3bba2d).

    What was done: pushed commit a8719df ("fix(deps): run go mod tidy for klauspost/compress v1.18.7 bump") onto PR #425's branch. go mod tidy in pkgs/graph, pkgs/identity, pkgs/map removed exactly the two stale lines per go.sum (the old v1.17.2 / v1.17.7 h1: and /go.mod hashes); go.mod files unchanged.

    Acceptance criteria:

    • Stale hashes removed from all three go.sum files — verified on merged main via the contents API: 0 remaining klauspost/compress v1.17* lines in pkgs/graph, pkgs/map, pkgs/identity; all three go.mod require v1.18.7.
    • PR checks green on the updated head a8719df: Go module tidy PASS (18s), go build (map) PASS, go build (sqlite) PASS, go build (libsql) PASS, treefmt PASS, Nix flake evaluation PASS, run PASS — the four previously failing checks all flipped.
    • The go 1.24 bump is confirmed intended/required: klauspost/compress v1.18.7's own go.mod declares go 1.24 (checked against the module proxy), so no module can consume the CVE fix without it; CI installs the per-module version via go-version-file, and pkgs/mcpx already builds with a newer Go (1.27.2).
    • PR chore(deps): update module github.com/klauspost/compress to v1.18.7 [security] #425 merged; no go.mod on main still requires compress < v1.18.7.

    Local verification before pushing: tidy idempotent in all three modules; pkgs/map builds; pkgs/identity builds with -tags sqlite and -tags libsql. pkgs/graph's compile failure (sshmarshal/x/crypto symbol collision) reproduces identically on unmodified main and is the pre-existing #166, unrelated to this bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions