Skip to content

Releases

jwt-3.3.1

Choose a tag to compare

@anakinj anakinj released this 24 Nov 17:37
e862256

v3.3.1 (2026-11-24)

Full Changelog

Fixes and enhancements:

  • Test that JWT::Claims::Required raises JWT::MissingRequiredClaim for a non-Hash payload #768 (@renanmpimentel)
  • Ignore unsupported kty values when a JWT::JWK::Set is built from an array #744 (@RalphBragg)
  • Redact private JWK material from inspection #754 - @OskarEichler
  • Reject tokens with too many segments in JWT::EncodedToken signature verification #782 (@anakinj)
  • Raise JWT::MalformedTokenError for a token header that is not a JSON object, including a string header in JWT.decode without verification #783 (@anakinj)
  • Do not call the key_finder of JWT::EncodedToken when the token's algorithm is not allowed, so a mismatched alg header no longer verifies with a key finder #784 (@anakinj)
  • Accept the RFC 8812 curve name secp256k1 when importing EC JWKs, alongside P-256K #787 (@anakinj)
  • Raise JWT::JWKError instead of OpenSSL::PKey::EC::Point::Error for EC JWK coordinates that are not a point on the given curve #789 (@anakinj)
  • Raise JWT::MalformedTokenError for a malformed x5c header parameter instead of a raw Ruby exception #740 - @arpitjain099.
  • Reject nbf and exp claims that are not finite numbers with JWT::InvalidPayload when decoding, including numeric strings (GHSA-gp6v-qjfx-hrxc)

jwt-3.3.0

Choose a tag to compare

@anakinj anakinj released this 11 Sep 20:37
ccf2489

v3.3.0 (2026-09-11)

Full Changelog

Features:

  • Allow a leeway to be given for the iat claim verification #747 - (@denis1011101)
  • Revamp the error hierarchy under a new JWT::Error base class; signing failures now consistently raise JWT::EncodeError, see UPGRADING.md #722 (@anakinj)

Fixes and enhancements:

  • Refactor JWT::JWK::Set#initialize so 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/DirectiveScope RuboCop offense failing the build #752
  • Fix JWT::JWK::Set sharing 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

Choose a tag to compare

@anakinj anakinj released this 22 May 15:42
a52e81d

v2.10.3 (2026-05-22)

Full Changelog

Fixes and enhancements:

jwt-3.2.0

Choose a tag to compare

@anakinj anakinj released this 13 May 19:39
db560b7

v3.2.0 (2026-05-13)

Full Changelog

Features:

  • Add enforce_hmac_key_length configuration option #716 - (@304)

Fixes and enhancements:

jwt-2.10.2

Choose a tag to compare

@anakinj anakinj released this 29 Jun 09:15
658275c

v2.10.2 (2025-06-29)

Full Changelog

Fixes and enhancements:

  • Avoid using the same digest across calls in JWT::JWA::Ecdsa and JWT::JWA::Rsa #697

jwt-3.1.2

Choose a tag to compare

@anakinj anakinj released this 28 Jun 19:01
bbe7ae3

v3.1.2 (2025-06-28)

Full Changelog

Fixes and enhancements:

  • Avoid using the same digest across calls in JWT::JWA::Ecdsa and JWT::JWA::Rsa #697
  • Fix signing with a EC JWK #699 (@anakinj)

jwt-3.1.1

Choose a tag to compare

@anakinj anakinj released this 24 Jun 17:29
50c01e0

v3.1.1 (2025-06-24)

Full Changelog

Fixes and enhancements:

  • Require the algorithm to be provided when signing and verifying tokens using JWKs #695 (@anakinj)

jwt-3.1.0

Choose a tag to compare

@anakinj anakinj released this 23 Jun 18:19
646febe

v3.1.0 (2025-06-23)

Full Changelog

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::Point to 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

Choose a tag to compare

@anakinj anakinj released this 14 Jun 17:34
b987a51

v3.0.0 (2025-06-14)

Full Changelog

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::KeyFinder compatible with JWT::EncodedToken #663 (@anakinj)

Fixes and enhancements:

jwt-3.0.0.beta1

jwt-3.0.0.beta1 Pre-release
Pre-release

Choose a tag to compare

@anakinj anakinj released this 25 Jan 10:20

v3.0.0-beta1 (2025-01-25)

Full Changelog

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::KeyFinder compatible with JWT::EncodedToken #663 (@anakinj)

Fixes and enhancements: