pypi / joserfc
joserfc
What changed in joserfc 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
18 breaking13 security9 new APIs and options3 behavior and defaults12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjoserfc 155 changes
Breaking changes 18
Explicitly empty additional authenticated data is rejected.
Tokens whose expiration time equals the current time are rejected.
Non-finite values in exp, nbf, and iat are rejected.
Boolean values in exp, nbf, and iat are rejected.
Certificates and prefixed public keys are rejected as oct keys.
Oct imports now reject asymmetric public keys.
Requires jti claim values to be strings.
Raises DecodeError when encrypted_key is None.
JWTs no longer include trailing padding.
Exports the public key by default.
Empty OctKey values are now rejected.
InvalidCEKLengthError was removed from jwe.
The JWT ExpiredTokenError exception was removed.
The JWT InvalidTokenError exception was removed.
The deprecated backend parameter is removed.
Use JWSRegistry.guess_algorithm in place of JWSRegistry.guess_alg.
The raw value is no longer included in ExceededSizeError.
Type hints were made strict, which may affect how developers type-check code using the library.
Security 13
Critical JSON headers and b64 mode receive additional protection.
ECDH ephemeral keys are refreshed for each encryption.
Limits the size of additional authenticated data in JWE.
Validates compact value size before splitting it.
Adds max_recipients to JWERegistry.
Prevents empty signatures from bypassing verify_general_json.
JWS now validates payload size for RFC 7797.
JWT adds default claims validation for iss, sub and aud.
joserfc: b64=false RFC7797 JWS payloads bypass JWSRegistry payload-size limits during deserialization
Sets a maximum value for p2c in JWE, limiting the parameter's accepted value.
joserfc has Possible Uncontrolled Resource Consumption Vulnerability Triggered by Logging Arbitrarily Large JWT Token Payloads
Adds security warnings when importing keys with OctKey.import_key.
Adds security warnings when importing keys with RSAKey.import_key.
New APIs and options 9
Adds a derive_key method to ECKey.
Adds a derive_key method to OKPKey.
The algorithm parameter is optional when picking a random key.
Adds the Ed25519 algorithm for JWS.
Adds the Ed448 algorithm for JWS.
Allows jwt.encode to set a default typ value.
Bytes and str keys can be imported without specifying a key type.
Adds a base ClaimError for claim-related errors.
Boolean types were added for registry value and values options, allowing developers to use boolean values with those options.
Behavior and default changes 3
The function supports KeySet objects as input.
The names parameter defaults to all algorithms, so callers can omit it to include all algorithms.
Bindings now check ssh_type and cryptography key types.
Fixes and other changes 12
Typing use was improved.
Reports the correct claim name when the iss claim is invalid.
Handles equality comparisons with unrelated types.
Ignores unknown kty values when importing a key set, as specified by RFC 7517 §5.
JWE decryption uses the original AAD base64 value.
The accepted type for algorithms now includes any Collection, rather than only list.
Adding a JWE recipient automatically adds its kid, including when a kid exists.
BaseClaimsRegistry.essential_keys is now a property.
JWK key import now accepts cryptography native key types.
Generating an ECKey with an invalid crv raises InvalidKeyCurveError.
The RFC9864 key-checking logic is improved.
Groups key-related errors with KeyParameterError.