Repository navigation
fix(deps): clear 16 vulnerable versions; make vulncheck guards every module - #143
Merged
Merged
Conversation
…dule x/net v0.62.0 (root, tools), grpc v1.83.2, cel-go v0.30.0 (tools), x/sys v0.44.0 (tools/actionlint). govulncheck v1.9.0 pinned in tools/go.mod. GO-2026-5932 (x/crypto/openpgp, no fix) allowlisted: never imported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…forge/glob/minimatch overrides getCookie() is async in better-auth 1.7: await it in apiFetch, which would otherwise send 'Cookie: [object Promise]'. Remaining npm advisories (no compatible fix, dev-time or client-only) allowlisted with reasons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Authorized by JJ ("please also merge the PRs on my template"), merged by Captain with --admin after |
This was referenced Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Same change as jayleaton/sparkrack#33.
The same 16 vulnerable dependency versions (1 critical, 4 high, 4 medium, 3 low, 4 not rated) that Lockpick flagged on sparkrack#28 (generated from this template) are in this repo too. They were spread across
go.mod,tools/go.mod,tools/actionlint/go.modandapps/mobile-app/pnpm-lock.yaml, and nothing in the repo would have stopped a new one landing.Fix
The critical one (better-auth GHSA-965c-763c-88jm, "OAuth state can be used as a Magic Link"), and why we were not exposed. The bug is in better-auth's server handlers. The mobile app imports only the client (
better-auth/react,@better-auth/expo/client), and our server is the Gopackages/auth, so that code never runs. Becausepackages/authis modelled on Better Auth, I checked that it doesn't share the bug's design. It does not: everyverificationrow is namespaced by its purpose (oauth-state:,oauth-handoff:,reset-password:,2fa:,trust-device:,change-email:), each flow only ever looks up its own prefix, and there is no magic-link flow. Bumped anyway.better-auth 1.7 API change:
authClient.getCookie()is now async.apiFetch(src/lib/api/client.ts) now awaits it; without that it would have sentCookie: [object Promise]. typecheck caught it. The contract test's threegetCookie()checks await it too.No usable fix, allowlisted in
scripts/vulncheck/allowlist.txt. Each entry has a reason and a review date of 2027-01-31.openpgp(go list -deps -testfinds 0 in every module; govulncheck reports it only at module level). We use argon2, scrypt, chacha20poly1305, hkdf and curve25519.Regression guard:
make vulncheck(scripts/vulncheck)..anddeploywith./...;toolsandtools/actionlintwithtool), pluspnpm auditon the mobile lockfile.make cialways runs it, somake nightly(feat(ci): make nightly runs the full suite on main #141) picks it up too.make check-fastruns it when ago.mod,go.sum,package.json,pnpm-lock.yamlor the allowlist changes. It only warns there if the scanner can't run (offline or no pnpm, exit 2).docs/CI.mdunder "Known vulnerabilities" and in AGENTS.md.Evidence
go run ./scripts/vulncheckon a detached origin/main exits 1 with 29 findings, includingGHSA-965c-763c-88jm better-auth@1.6.29 (critical, fixed in >=1.7.7)andtools: GO-2026-6443 google.golang.org/grpc@v1.83.1 (fixed in v1.83.2).vulncheck: ok (4 Go modules, 1 lockfiles, 6 allowlisted).FAILand exit 1.x/net/html. Lockpick reads go.mod, so it was bumped anyway.pnpm install --frozen-lockfile,tsc,expo lint,expo install --checkandpnpm test(18 tests) pass.pnpm test:contract. It is broken on main for a reason unrelated to this change. Node'sfetchsendsSec-Fetch-Mode: cors, and the API's browser gate (apps/web/internal/server/middleware.go, same code as sparkrack; seen there) answers that with a 404, so setup times out waiting on/healthz. That is follow-up work. ThegetCookieawaits are therefore type-checked but not run against a server.Merge Danger
Door: two-way. Revert restores the old versions.
Blast Radius: mobile-auth. better-auth 1.7 is a minor-version bump of the mobile auth client; its only API change that affects us (
getCookieis now async) is handled. The Go bumps are patch or minor versions of indirect dependencies, and the tools only affect dev tooling.Local verification
Head
286ad05b2ec0becc8137b01ad68915e5c537764a· treebd103431b723· passedAttested by
JJ EatononMacBook-Pro-3.localRan: make ci (build, check-generated, lint, test -race + coverage, lint-layering, lint-tests, deploy-check, vulncheck); make admin-build actionlint check-fast; apps/mobile-app: pnpm install --frozen-lockfile, tsc, expo lint, expo install --check, pnpm test (test:contract not run: Node fetch Sec-Fetch-Mode hits the API browser gate, pre-existing)
🤖 Generated with Claude Code