Repository navigation
Releases
Releases · jwt/ruby-jwt
jwt-3.3.1
v3.3.1 (2026-11-24)
Fixes and enhancements:
- Test that
JWT::Claims::RequiredraisesJWT::MissingRequiredClaimfor a non-Hash payload #768 (@renanmpimentel) - Ignore unsupported
ktyvalues when aJWT::JWK::Setis built from an array #744 (@RalphBragg) - Redact private JWK material from inspection #754 - @OskarEichler
- Reject tokens with too many segments in
JWT::EncodedTokensignature verification #782 (@anakinj) - Raise
JWT::MalformedTokenErrorfor a token header that is not a JSON object, including a string header inJWT.decodewithout verification #783 (@anakinj) - Do not call the
key_finderofJWT::EncodedTokenwhen the token's algorithm is not allowed, so a mismatchedalgheader no longer verifies with a key finder #784 (@anakinj) - Accept the RFC 8812 curve name
secp256k1when importing EC JWKs, alongsideP-256K#787 (@anakinj) - Raise
JWT::JWKErrorinstead ofOpenSSL::PKey::EC::Point::Errorfor EC JWK coordinates that are not a point on the given curve #789 (@anakinj) - Raise
JWT::MalformedTokenErrorfor a malformedx5cheader parameter instead of a raw Ruby exception #740 - @arpitjain099. - Reject
nbfandexpclaims that are not finite numbers withJWT::InvalidPayloadwhen decoding, including numeric strings (GHSA-gp6v-qjfx-hrxc)
jwt-3.3.0
v3.3.0 (2026-09-11)
Features:
- Allow a leeway to be given for the
iatclaim verification #747 - (@denis1011101) - Revamp the error hierarchy under a new
JWT::Errorbase class; signing failures now consistently raiseJWT::EncodeError, see UPGRADING.md #722 (@anakinj)
Fixes and enhancements:
- Refactor
JWT::JWK::Set#initializeso each construction path is a named method #758 (@anakinj) - Fix rejection of unknown algorithms from JWKs for RFC compliance and pquip #728
- Fix the
Style/DirectiveScopeRuboCop offense failing the build #752 - Fix
JWT::JWK::Setsharing its key collection with the set it was copied from #751 - Reset the decoded payload and verification state in
JWT::EncodedToken#encoded_payload=#749 - Fix
JWT::Token#detach_payload!not invalidating an already rendered token #748
jwt-2.10.3
v2.10.3 (2026-05-22)
Fixes and enhancements:
- Backport: Reject
niland empty HMAC keys when signing and verifying (CVE-2026-45363 / GHSA-c32j-vqhx-rx3x) #725 (@royzwambag)
jwt-3.2.0
v3.2.0 (2026-05-13)
Features:
Fixes and enhancements:
- Reject
niland empty HMAC keys when signing and verifying (CVE-2026-45363 / GHSA-c32j-vqhx-rx3x) - Fix compatibility with the openssl 4.0 gem #706
- Test against Ruby 4.0 on CI #707
- Fix type error when header is not a JSON object #715 - (@304)
jwt-2.10.2
jwt-3.1.2
jwt-3.1.1
jwt-3.1.0
v3.1.0 (2025-06-23)
Features:
- Add support for x5t header parameter for X.509 certificate thumbprint verification #669 (@hieuk09)
- Raise an error if the ECDSA signing or verification key is not an instance of
OpenSSL::PKey::EC#688 (@anakinj) - Allow
OpenSSL::PKey::EC::Pointto be used as the verification key in ECDSA #689 (@anakinj) - Require claims to have been verified before accessing the
JWT::EncodedToken#payload#690 (@anakinj) - Support signing and verifying tokens using a JWK #692 (@anakinj)
jwt-3.0.0
v3.0.0 (2025-06-14)
Breaking changes:
- Require token signature to be verified before accessing payload #648 (@anakinj)
- Drop support for the HS512256 algorithm #650 (@anakinj)
- Remove deprecated claim verification methods #654 (@anakinj)
- Remove dependency to rbnacl #655 (@anakinj)
- Support only stricter base64 decoding (RFC 4648) #658 (@anakinj)
- Custom algorithms are required to include
JWT::JWA::SigningAlgorithm#660 (@anakinj) - Require RSA keys to be at least 2048 bits #661 (@anakinj)
- Base64 encode and decode the k value for HMAC JWKs #662 (@anakinj)
Take a look at the upgrade guide for more details.
Features:
- JWT::EncodedToken#verify! method that bundles signature and claim validation #647 (@anakinj)
- Do not override the alg header if already given #659 (@anakinj)
- Make
JWK::KeyFindercompatible withJWT::EncodedToken#663 (@anakinj)
Fixes and enhancements:
jwt-3.0.0.beta1
v3.0.0-beta1 (2025-01-25)
Breaking changes:
- Require token signature to be verified before accessing payload #648 (@anakinj)
- Drop support for the HS512256 algorithm #650 (@anakinj)
- Remove deprecated claim verification methods #654 (@anakinj)
- Remove dependency to rbnacl #655 (@anakinj)
- Support only stricter base64 decoding (RFC 4648) #658 (@anakinj)
- Custom algorithms are required to include
JWT::JWA::SigningAlgorithm#660 (@anakinj) - Require RSA keys to be at least 2048 bits #661 (@anakinj)
- Base64 encode and decode the k value for HMAC JWKs #662 (@anakinj)
Take a look at the upgrade guide for more details.
Features:
- JWT::EncodedToken#verify! method that bundles signature and claim validation #647 (@anakinj)
- Do not override the alg header if already given #659 (@anakinj)
- Make
JWK::KeyFindercompatible withJWT::EncodedToken#663 (@anakinj)
Fixes and enhancements: