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
Verify OpaqueSigner's Public() return is public (#260)
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) | `v4.1.4` → `v4.1.9` |  |  |
---
### Release Notes
<details>
<summary>go-jose/go-jose (github.com/go-jose/go-jose/v4)</summary>
### [`v4.1.9`](https://github.com/go-jose/go-jose/releases/tag/v4.1.9)
[Compare Source](https://github.com/go-jose/go-jose/compare/v4.1.8...v4.1.9)
#### Fixed
- OpaqueSigner now supports unrecognized public key types again ([#​325](https://github.com/go-jose/go-jose/issues/325), fixes a regression in v4.1.5)
- Parsing a JWK with an unsupported elliptic curve, or a too-big RSA modulus, now returns ErrUnsupportedKeyType ([#​327](https://github.com/go-jose/go-jose/pull/327))
**Full Changelog**: <https://github.com/go-jose/go-jose/compare/v4.1.8...v4.1.9>
### [`v4.1.8`](https://github.com/go-jose/go-jose/releases/tag/v4.1.8)
[Compare Source](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.8)
#### Added
- ML-DSA support by [@​james-d-elliott](https://github.com/james-d-elliott) in [#​282](https://github.com/go-jose/go-jose/pull/282) 🎉
### [`v4.1.7`](https://github.com/go-jose/go-jose/releases/tag/v4.1.7)
[Compare Source](https://github.com/go-jose/go-jose/compare/v4.1.6...v4.1.7)
#### Fixed Security Issues
- Thumbprint: reject invalid RSA key ([#​317](https://github.com/go-jose/go-jose/issues/317)) - [GHSA-r39w-98wm-9pp6](https://github.com/go-jose/go-jose/security/advisories/GHSA-r39w-98wm-9pp6)
- json: backport stdlib fix for embedded unexported field ([#​318](https://github.com/go-jose/go-jose/issues/318)) - [GHSA-27pc-rm86-68pq](https://github.com/go-jose/go-jose/security/advisories/GHSA-27pc-rm86-68pq)
- Detect if headers are set by presence in the map ([#​319](https://github.com/go-jose/go-jose/issues/319)) - [GHSA-p9j4-2j95-j4rv](https://github.com/go-jose/go-jose/security/advisories/GHSA-p9j4-2j95-j4rv)
- limit RSA size in certificate verify ([#​315](https://github.com/go-jose/go-jose/issues/315)) - [GHSA-v6h2-qj3f-2h6v](https://github.com/go-jose/go-jose/security/advisories/GHSA-v6h2-qj3f-2h6v)
- Limit recipients and signatures in JWE/JWS ([#​316](https://github.com/go-jose/go-jose/issues/316)) - [GHSA-c67m-wr4h-2ccg](https://github.com/go-jose/go-jose/security/advisories/GHSA-c67m-wr4h-2ccg)
#### Fixed
- jwk: fix bug in x5c parsing ([#​311](https://github.com/go-jose/go-jose/issues/311))
- reject base64-encoded "null" in protected headers ([#​309](https://github.com/go-jose/go-jose/issues/309))
#### Deprecated
- deprecate ParseEncrypted / ParseSigned ([#​222](https://github.com/go-jose/go-jose/issues/222))
### [`v4.1.6`](https://github.com/go-jose/go-jose/releases/tag/v4.1.6)
[Compare Source](https://github.com/go-jose/go-jose/compare/v4.1.5...v4.1.6)
#### 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 `MaxRSAModulusBits` before performing any JWK parsing.
#### Changed
- Reject mismatched JWE CEK lengths by [@​akshithg](https://github.com/akshithg) in [#​266](https://github.com/go-jose/go-jose/pull/266)
- Add a tests containerfile and threat model by [@​mcpherrinm](https://github.com/mcpherrinm) in [#​300](https://github.com/go-jose/go-jose/pull/300)
- Fix error message for future issued tokens by [@​inahga](https://github.com/inahga) in [#​303](https://github.com/go-jose/go-jose/pull/303)
**Full Changelog**: <https://github.com/go-jose/go-jose/compare/v4.1.5...v4.1.6>
### [`v4.1.5`](https://github.com/go-jose/go-jose/releases/tag/v4.1.5)
[Compare Source](https://github.com/go-jose/go-jose/compare/v4.1.4...v4.1.5)
### Fixed security issues
- cipher/cbc_hmac: don't panic on empty ciphertext ([#​292](https://github.com/go-jose/go-jose/issues/292))
- cipher/cbc_hmac: don't panic on invalid key ([#​291](https://github.com/go-jose/go-jose/issues/291))
- json: limit stack depth ([#​290](https://github.com/go-jose/go-jose/issues/290))
- jwt: reject out-of-range NumericDate values ([#​278](https://github.com/go-jose/go-jose/issues/278))
- Check alg against pubkey curve during verify. ([#​293](https://github.com/go-jose/go-jose/issues/293))
- Reject malformed [`Ed25519`](https://github.com/go-jose/go-jose/commit/Ed25519) JWKs ([#​250](https://github.com/go-jose/go-jose/issues/250))
- jws: choose verification key per-signature ([#​243](https://github.com/go-jose/go-jose/issues/243))
### Breaking Changes
In [#​226](https://github.com/go-jose/go-jose/issues/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
- Verify OpaqueSigner's Public() return is public ([#​260](https://github.com/go-jose/go-jose/issues/260))
- jws: skip signature on ErrJWKSKidNotFound ([#​248](https://github.com/go-jose/go-jose/issues/248))
- Handle JWE JSON without protected header ([#​240](https://github.com/go-jose/go-jose/issues/240))
- jws: don't strip internal whitespace before parsing JSON ([#​239](https://github.com/go-jose/go-jose/issues/239))
- jws: fewer calls to OpaqueSigner.Public() ([#​224](https://github.com/go-jose/go-jose/issues/224))
- Return a specific error when parsing empty string ([#​216](https://github.com/go-jose/go-jose/issues/216))
- Reject typed nil at Verify time ([#​285](https://github.com/go-jose/go-jose/issues/285))
</details>
---
### Configuration
📅 **Schedule**: (in timezone Europe/Berlin)
- Branch creation
- "before 7am on monday"
- Automerge
- 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 has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v4.1.4→v4.1.9Release Notes
go-jose/go-jose (github.com/go-jose/go-jose/v4)
v4.1.9Compare Source
Fixed
Full Changelog: https://github.com/go-jose/go-jose/compare/v4.1.8...v4.1.9
v4.1.8Compare Source
Added
v4.1.7Compare Source
Fixed Security Issues
Fixed
Deprecated
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
Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 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.
This PR has been generated by Mend Renovate CLI.