Skip to content

Commit 374cac1

Browse files
fix(deps): bump golang.org/x/crypto to v0.52.0 to close OSV advisories (#3019)
## What this PR does Restores the OpenSSF Scorecard **Vulnerabilities** check to green. It regressed to **0/10** after #2852: in the weeks since, `golang.org/x/crypto v0.51.0` accrued **13 new advisories** (`GO-2026-5005`, `5006`, `5013`–`5021`, `5023`, `5033`). An `osv-scanner` pass over `main` confirmed all 13 trace to that single package. ### Change - **`golang.org/x/crypto 0.51.0 → 0.52.0`** (the fixed version for all 13). No transitive cascade — `go mod tidy` changed only this line plus its two `go.sum` hashes. Bumped with `go get` / `go mod tidy`, not by hand-editing the generated `go.mod`. ### Verification - `osv-scanner` after the bump: **No issues found** (0 advisories across both modules). - `go build ./...` passes. - `make generate` produces **no drift** — `codegen-drift` stays green. > Scorecard's report mentioned advisory IDs as low as `GO-2025-3512` (kubevirt-csi, CVE-2024-1725). That package is **not** in `go.mod` or `go.sum` — it isn't a cozystack dependency, so nothing to bump there. The real cluster is the 13 x/crypto advisories this PR closes. ### Why this keeps happening (and the durable fix) `x/crypto` is an **indirect** dependency, and the Renovate app isn't actually opening PRs on this repo yet (no `renovate[bot]` PRs, no Dependency Dashboard) — the org Renovate install needs `cozystack/cozystack` added to its repo list. Until then, indirect-dep and Go-toolchain advisories will keep knocking this check back to 0 and need manual bumps like this one. Recommended follow-ups: enable Renovate on the repo, and allow it to bump indirect deps (and optionally the Go patch version). ### Release note ```release-note fix(deps): bump golang.org/x/crypto to v0.52.0, closing 13 known OSV advisories (GO-2026-5005…5033) ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated cryptographic dependency to the latest patch version for enhanced security and stability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents fccf7a8 + 7ee54d9 commit 374cac1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ require (
106106
go.uber.org/multierr v1.11.0 // indirect
107107
go.yaml.in/yaml/v2 v2.4.2 // indirect
108108
go.yaml.in/yaml/v3 v3.0.4 // indirect
109-
golang.org/x/crypto v0.51.0 // indirect
109+
golang.org/x/crypto v0.52.0 // indirect
110110
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect
111111
golang.org/x/net v0.55.0 // indirect
112112
golang.org/x/oauth2 v0.35.0 // indirect

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
239239
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
240240
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
241241
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
242-
golang.org/x/crypto v0.51.0 h1:IBPXwPfKxY7cWQZ38ZCIRPI50YLeevDLlLnyC5wRGTI=
243-
golang.org/x/crypto v0.51.0/go.mod h1:8AdwkbraGNABw2kOX6YFPs3WM22XqI4EXEd8g+x7Oc8=
242+
golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988=
243+
golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc=
244244
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 h1:1UoZQm6f0P/ZO0w1Ri+f+ifG/gXhegadRdwBIXEFWDo=
245245
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c=
246246
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=

0 commit comments

Comments
 (0)