CVE-2026-114616Authlib
JWT Token Forgery via Empty Key Acceptance in Authlib
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 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · 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 prior to 1.9.1 accepts zero-length keys in OctKey.import_key() and HMAC verification (HS256, HS384, HS512). A remote attacker can forge valid JWT tokens if the application returns an empty string or empty bytes as a secret, compromising authentication without requiring credentials.
Show the original NVD text
Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.1, Authlib's OctKey.import_key() and HMAC signing and verification path accept zero-length key material. If an application's secret lookup can return an empty string or empty bytes, a remote attacker can compute the deterministic HS256, HS384, or HS512 signature for arbitrary token claims and have Authlib treat the token as authentic. This issue is fixed in version 1.9.1.
What to do
Patch available · fixed versions: 1.9.1
Update Authlib to version 1.9.1 or later. Ensure your application does not return empty keys in secret lookups.
- 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.9.1 |
1.9.1 |
pip install "authlib>=1.9.1" |
| PyPI | authlib |
< 1.9.1 |
1.9.1 |
pip install "authlib>=1.9.1" |
Per OSV / GitHub Advisories (GHSA-8m4g-j4wp-wgcg, PYSEC-2026-4356). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| authlib | authlib | < 1.9.1 |
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 Release Notes
- github.com Exploit Mitigation Vendor Advisory