Bump go-jose/go-jose to v4.1.4 to fix GHSA-78h2-9frx-2jm8#13286
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the vendored github.com/go-jose/go-jose/v4 dependency to v4.1.4 to address GHSA-78h2-9frx-2jm8, bringing in upstream hardening around JWE key unwrapping.
Changes:
- Bumped
github.com/go-jose/go-jose/v4from v4.1.3 → v4.1.4 ingo.mod/go.sum. - Updated vendored module metadata (
vendor/modules.txt) for the new version. - Pulled in upstream vendored fixes adding stricter validation for missing recipients / encrypted keys during JWE decrypt and key unwrapping.
Reviewed changes
Copilot reviewed 1 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
go.mod |
Bumps indirect go-jose requirement to v4.1.4. |
go.sum |
Updates checksums for go-jose v4.1.4. |
vendor/modules.txt |
Reflects the vendored go-jose v4.1.4 module version. |
vendor/github.com/go-jose/go-jose/v4/symmetric.go |
Upstream hardening: validates recipient/encrypted key; uses bytes.Clone for DIRECT. |
vendor/github.com/go-jose/go-jose/v4/asymmetric.go |
Upstream hardening: validates recipient/encrypted key before unwrap in ECDH-ES paths. |
vendor/github.com/go-jose/go-jose/v4/cipher/key_wrap.go |
Upstream hardening: rejects too-short wrapped keys before unwrapping. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
12b14ca to
cd23042
Compare
Signed-off-by: Chris Chang <[email protected]>
4a2cc43 to
5125a2a
Compare
|
/cherry-pick release/2.1 release/2.0 |
|
@cpuguy83: #13286 failed to apply on top of branch "release/2.1": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Summary
Bump
github.com/go-jose/go-jose/v4from v4.1.3 to v4.1.4 to address a high-severity vulnerability:Changes
go.modindirect dependency from v4.1.3 → v4.1.4go mod tidyandgo mod vendorto updatego.sumand vendored sourcesmake buildsucceedsBackport Plan
Per RELEASES.md, this fix needs to be backported to all active and LTS release branches:
release/1.7release/2.0release/2.1release/2.2Next Steps
After this PR merges into
main:go mod tidy && go mod vendor && make buildon each branch to verify[release/X.Y]prefix in the title per RELEASES.md backporting guidelines