Skip to content

security: fix 10 critical CVEs in Go deps and toolchain - #233

Merged
sourya-deepsource merged 1 commit into
masterfrom
security/critical-cve-fixes-jul2026
Jul 31, 2026
Merged

security: fix 10 critical CVEs in Go deps and toolchain#233
sourya-deepsource merged 1 commit into
masterfrom
security/critical-cve-fixes-jul2026

Conversation

@sawez-deepsource

Copy link
Copy Markdown
Contributor

Resolves all 10 critical SCA advisories flagged for globstar in the Jul-2026 scan. globstar doesn't depend on artifacts or grpc, so this is a direct dep + toolchain bump. Fixed versions cross-checked against OSV.dev, and every resolved version re-scanned to confirm it isn't in a newer advisory window.

Changes (all required, nothing gratuitous)

Package From → To Resolves OSV on final
golang.org/x/crypto 0.35.0 → 0.54.0 7 ssh CVEs (CVE-2026-46595, 39833/39832/39830/39831/39834, 42508) openpgp notice¹
golang.org/x/net 0.35.0 → 0.57.0 CVE-2026-39821 ✅ clean
golang.org/x/sys 0.30.0 → 0.47.0 forced — the exact version x/crypto@0.54.0 & x/net@0.57.0 require ✅ clean
toolchain go 1.23.2go 1.25.0 + toolchain go1.25.12 CVE-2025-22871 (@1.24.2) + CVE-2025-68121 (@1.25.7) ✅ stdlib@1.25.12 clean
CI (build-and-test.yaml, release.yml) go-version: 1.231.25 match the toolchain bump

go.mod: 0 packages added, 0 removed — only the version changes above. x/crypto/x-net/x-sys are all indirect and not imported by globstar's code (no API surface touched); the only behavioral-risk change is the toolchain bump, gated by the tests + e2e below.

The one residual — unfixable by bump (suppress-only)

¹ x/crypto GO-2026-5932openpgp package unmaintained (informational). Affects all versions; openpgp is not imported anywhere in globstar → not reachable.

Verification

  • Regression control: master baseline = 5 ok / 0 FAIL; after the bump the identical suite is 5 ok / 0 FAIL (matched exactly). (Preflight: make generate-registry — the generated AnalyzerRegistry is required to build/test.)
  • Build: make buildbin/globstar produced.
  • e2e: built binary ran the analyzer on 72 files and emitted correct diagnostics.
  • OSV: all final resolved versions clean (x/net, x/sys, stdlib) except the non-reachable openpgp notice.

Resolves all 10 critical advisories flagged for globstar in the Jul-2026
dependency scan:
- golang.org/x/crypto v0.35.0 -> v0.54.0  (CVE-2026-46595 + 39833/39832/
  39830/39831/39834 + 42508 -- 7 ssh CVEs, fixed 0.52.0)
- golang.org/x/net    v0.35.0 -> v0.57.0  (CVE-2026-39821, fixed 0.55.0)
- toolchain go 1.23.2 -> go1.25.12        (CVE-2025-22871 @1.24.2,
  CVE-2025-68121 @1.25.7)

golang.org/x/sys is pulled to v0.47.0 as required by x/crypto and x/net.
CI go-version bumped 1.23 -> 1.25 to match the toolchain. Targets match the
0.54.0 / 0.57.0 set also used across marvin/coat, which is OSV-clean and
clears newer moderate advisories too.

All resolved versions OSV-clean; x/crypto's only residual is the openpgp
unmaintained notice (GO-2026-5932), which globstar does not import.

Verified: registry gen + test suite 5 ok/0 FAIL (== master baseline),
make build, and an end-to-end analyzer run (72 files, correct diagnostics).
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
globstar Ignored Ignored Jul 31, 2026 3:05pm

Request Review

@sourya-deepsource
sourya-deepsource merged commit 2c950a0 into master Jul 31, 2026
8 checks passed
@sourya-deepsource
sourya-deepsource deleted the security/critical-cve-fixes-jul2026 branch July 31, 2026 15:57
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.

2 participants