fix(deps): update dependency authlib to v1.6.4 [security]#1946
Merged
mergify[bot] merged 1 commit intomasterfrom Sep 22, 2025
Merged
fix(deps): update dependency authlib to v1.6.4 [security]#1946mergify[bot] merged 1 commit intomasterfrom
mergify[bot] merged 1 commit intomasterfrom
Conversation
|
Build succeeded. ✔️ fi-tox-mypy SUCCESS in 5m 49s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
1.6.0->1.6.4GitHub Vulnerability Alerts
CVE-2025-59420
Summary
Authlib’s JWS verification accepts tokens that declare unknown critical header parameters (
crit), violating RFC 7515 “must‑understand” semantics. An attacker can craft a signed token with a critical header (for example,borkorcnf) that strict verifiers reject but Authlib accepts. In mixed‑language fleets, this enables split‑brain verification and can lead to policy bypass, replay, or privilege escalation.Affected Component and Versions
authlib.jose.JsonWebSignature.deserialize_compact(...)critDetails
RFC 7515 (JWS) §4.1.11 defines
critas a “must‑understand” list: recipients MUST understand and enforce every header parameter listed incrit, otherwise they MUST reject the token. Security‑sensitive semantics such as token binding (e.g.,cnffrom RFC 7800) are often conveyed viacrit.Observed behavior with Authlib 1.6.3:
crit: ["cnf"]and acnfobject, orcrit: ["bork"]with an unknown parameter, Authlib verifies the signature and returns the payload without rejecting the token or enforcing semantics of the critical parameter.josev5 both reject such tokens by default whencritlists unknown names.Impact in heterogeneous fleets:
critcarries binding or policy information.Proof of Concept (PoC)
This repository provides a multi‑runtime PoC demonstrating the issue across Python (Authlib), Node (
josev5), and Java (Nimbus).Prerequisites
Setup
Enter the directory authlib-crit-bypass-poc & run following commands.
Tokens minted
tokens/unknown_crit.jwtwith protected header:{ "alg": "HS256", "crit": ["bork"], "bork": "x" }tokens/cnf_header.jwtwith protected header:{ "alg": "HS256", "crit": ["cnf"], "cnf": {"jkt": "thumb-42"} }Reproduction
Run the cross‑runtime demo:
Expected output for each token (strict verifiers reject; Authlib accepts):
For
tokens/unknown_crit.jwt:For
tokens/cnf_header.jwt:Environment notes:
1.6.3(from PyPI)joseversion:^59.37.x0123456789abcdef0123456789abcdefImpact
crit“must‑understand” semantics; specification non‑compliance leading to authentication/authorization policy bypass.critto carry mandatory security semantics (e.g., token binding viacnf) or operates in a heterogeneous fleet with strict verifiers elsewhere.References
critcnf)Release Notes
authlib/authlib (authlib)
v1.6.4Compare Source
What's Changed
InsecureTransportErrorraising by @azmeuk in #810New Contributors
Full Changelog: authlib/authlib@v1.6.3...v1.6.4
v1.6.3: Version 1.6.3Compare Source
What's Changed
id_token_signed_response_algclient metadata by @azmeuk in #802Full Changelog: authlib/authlib@v1.6.2...v1.6.3
v1.6.2: Version 1.6.2Compare Source
What's Changed
Full Changelog: authlib/authlib@v1.6.1...v1.6.2
v1.6.1: Version 1.6.1Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), 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.
This PR was generated by Mend Renovate. View the repository job log.