CVE-2026-114615Authlib
JWT Token Forgery in Authlib via Insufficient HMAC Key Validation
Critical 9.1 No auth needed
Follow: this CVE · Authlib · Authlib We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 22, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
Authlib versions 1.3.1 through 1.8.x contain a vulnerability in OctKey.import_key() that fails to properly validate asymmetric keys with prefixes (whitespace, comments, or BOM). An unauthenticated attacker can use known public-key bytes as an HMAC secret to forge HS256 tokens with arbitrary identity and authorization claims, bypassing the CVE-2024-37568 remediation.
Show the original NVD text
Authlib is a Python library which builds OAuth and OpenID Connect servers. From 1.3.1 until 1.9.0, OctKey.import_key() checks asymmetric-key markers only at byte zero while Authlib's PEM loaders accept leading whitespace, comments, or a byte-order mark. In deployments that use the documented mixed algorithm registry and already configure verification with PEM or certificate bytes containing such a prefix, an unauthenticated attacker who knows those same public-key bytes can use them as an HMAC secret and forge HS256 tokens with arbitrary identity or authorization claims. This is a bypass of the remediation for CVE-2024-37568. The module-level jwt object reaches OctKey.import_key() in authlib/jose/rfc7518/oct_key.py, where POSSIBLE_UNSAFE_KEYS fails to identify prefixed asymmetric key material. This issue is fixed in version 1.9.0.
What to do
Patch available · fixed versions: 1.9.0
Update Authlib to version 1.9.0 or later to fix HMAC key validation.
- Apply the vendor's security update for Authlib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | authlib |
≥ 1.3.1 < 1.9.0 |
1.9.0 |
pip install "authlib>=1.9.0" |
| PyPI | authlib |
≥ 1.3.1 < 1.9.0 |
1.9.0 |
pip install "authlib>=1.9.0" |
Per OSV / GitHub Advisories (GHSA-7vr2-2fgp-9w7p, PYSEC-2026-4355). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| authlib | authlib | ≥ 1.3.1 < 1.9.0 |
Official advisories
- python313-Authlib-1.9.1-1.1 on GA media · SUSE · openSUSE-SU-2026:12390-1 · Nov 2, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Exploit Mitigation Vendor Advisory