chore(deps): update module github.com/go-jose/go-jose/v4 to v4.1.6 [security] #409
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.75) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #409"
general
weight: 0.35
erikgb
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| github.com/go-jose/go-jose/v4 |
v4.1.4→v4.1.6| !age | !adoption | !passing | !confidence |---
Go JOSE: DoS when parsing JWKs that contain RSA keys
CVE-2026-116587 / GHSA-mgcc-cww5-fp2q
<details>
<summary>More information</summary>
Details
##### Summary
A crafted RSA key inside a JWK can cause operations that parse JWKs to consume excess CPU.
##### Details
go-jose does not check for bounds on RSA modulus and primes before validating them. Values are passed directly to
crypto/rsa.PrivateKey.Validate(). On Go 1.24+, this takes cubic time complexity with respect to the RSA modulus and primes. This allows an attacker to supply a crafted JWK to consume excessive CPU.https://github.com/go-jose/go-jose/blob/5b371aecfcf7aabe06068d67da4344591ecddc76/jwk.go#L655-L700
##### Proof of concept
No special configuration of go-jose is required to reproduce this vulnerability.
##### Impact
Denial of service vulnerability. Any application that uses go-jose to parse JWKs from untrusted sources is affected and should patch immediately.
##### Credits
Reported by Yuval Saggie and Mor Weinberger (powered by Echo Frontier)
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
</details>
---
Go JOSE: Panic during CBC-HMAC processing
CVE-2026-116585 / GHSA-4w3g-jfj2-cw2q
<details>
<summary>More information</summary>
Details
##### Summary
Decrypting a ciphertext with "A128CBC-HS256", "A192CBC-HS384", or "A256CBC-HS512" can result in a panic on untrusted input.
Note this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4.
##### Details
Insufficient validation of parameters can lead to attempting to index into an empty buffer. See https://github.com/go-jose/go-jose/pull/292.
##### Workarounds
If the application does not require the CBC-HMAC modes for content encryption, and is using github.com/go-jose/go-jose/v4, do not include them in the list of ContentEncryption algorithms passed to ParseEncrypted / ParseEncryptedJSON / ParseEncryptedCompact.
##### Impact
Denial of service vulnerability. Any application which decrypts untrusted ciphertexts with the indicated algorithms is affected.
##### Acknowledgements
Thanks to Joshua Rogers of AISLE Research for reporting this problem.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
</details>
---
Go JOSE: Panics in JSON parsing
CVE-2026-116586 / GHSA-vvm8-gf78-28g4
<details>
<summary>More information</summary>
Details
##### Summary
Parsing deeply nested JSON structures can hit Go's stack limit, causing the application to crash.
Note: this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4.
##### Impact
Denial of service vulnerability. Any application that parses untrusted JSON via go-jose is exposed.
##### Workarounds
Reject large inputs before parsing them.
##### Acknowledgements
Thanks to Dohyun Kim (@​azza999), Joshua Rogers of AISLE Research, and Sueun Cho for alerting us to the need to patch this.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
</details>
---
Go JOSE: Panic during CBC-HMAC processing
CVE-2026-116585 / GHSA-4w3g-jfj2-cw2q
<details>
<summary>More information</summary>
Details
##### Summary
Decrypting a ciphertext with "A128CBC-HS256", "A192CBC-HS384", or "A256CBC-HS512" can result in a panic on untrusted input.
Note this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4.
##### Details
Insufficient validation of parameters can lead to attempting to index into an empty buffer. See https://github.com/go-jose/go-jose/pull/292.
##### Workarounds
If the application does not require the CBC-HMAC modes for content encryption, and is using github.com/go-jose/go-jose/v4, do not include them in the list of ContentEncryption algorithms passed to ParseEncrypted / ParseEncryptedJSON / ParseEncryptedCompact.
##### Impact
Denial of service vulnerability. Any application which decrypts untrusted ciphertexts with the indicated algorithms is affected.
##### Acknowledgements
Thanks to Joshua Rogers of AISLE Research for reporting this problem.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
</details>
---
Go JOSE: Panics in JSON parsing
CVE-2026-116586 / GHSA-vvm8-gf78-28g4
<details>
<summary>More information</summary>
Details
##### Summary
Parsing deeply nested JSON structures can hit Go's stack limit, causing the application to crash.
Note: this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4.
##### Impact
Denial of service vulnerability. Any application that parses untrusted JSON via go-jose is exposed.
##### Workarounds
Reject large inputs before parsing them.
##### Acknowledgements
Thanks to Dohyun Kim (@​azza999), Joshua Rogers of AISLE Research, and Sueun Cho for alerting us to the need to patch this.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
</details>
---
Go JOSE: DoS when parsing JWKs that contain RSA keys
CVE-2026-116587 / GHSA-mgcc-cww5-fp2q
<details>
<summary>More information</summary>
Details
##### Summary
A crafted RSA key inside a JWK can cause operations that parse JWKs to consume excess CPU.
##### Details
go-jose does not check for bounds on RSA modulus and primes before validating them. Values are passed directly to
crypto/rsa.PrivateKey.Validate(). On Go 1.24+, this takes cubic time complexity with respect to the RSA modulus and primes. This allows an attacker to supply a crafted JWK to consume excessive CPU.https://github.com/go-jose/go-jose/blob/5b371aecfcf7aabe06068d67da4344591ecddc76/jwk.go#L655-L700
##### Proof of concept
No special configuration of go-jose is required to reproduce this vulnerability.
##### Impact
Denial of service vulnerability. Any application that uses go-jose to parse JWKs from untrusted sources is affected and should patch immediately.
##### Credits
Reported by Yuval Saggie and Mor Weinberger (powered by Echo Frontier)
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
</details>
---
Release Notes
<details>
<summary>go-jose/go-jose (github.com/go-jose/go-jose/v4)</summary>
v4.1.6Compare Source
Fixed Security Issues
This release contains a fix for <https://github.com/go-jose/go-jose/security/advisories/GHSA-mgcc-cww5-fp2q>
Breaking Changes
The fix for <https://github.com/go-jose/go-jose/security/advisories/GHSA-mgcc-cww5-fp2q> involves capping the size of the RSA modulus of keys accepted by JWK parsing. This limit is 4096 bits. If you need this to be higher, set
MaxRSAModulusBitsbefore performing any JWK parsing.Changed
Full Changelog: <https://github.com/go-jose/go-jose/compare/v4.1.5...v4.1.6>
v4.1.5Compare Source
##### Fixed security issues
Ed25519JWKs (#​250)##### Breaking Changes
In #​226, we un-exported jose.RandReader. This was used to be able to stub out the randomness function in tests, but is ignored as of Go 1.26 in some APIs, so no longer serves a useful function.
##### Changed
</details>
---
Configuration
📅 Schedule: (in timezone Europe/London)
- At any time (no schedule defined)
- At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR was generated by Mend Renovate. View the repository job log.
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsIm9rLXRvLXRlc3QiXX0=-->