Live threats

All CVEs / Authlib

CVE-2026-114616Authlib

JWT Token Forgery via Empty Key Acceptance in Authlib

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Oct 22, 2026
Updated
Oct 30, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287, CWE-326, CWE-1391
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.

Source text, unmodified. NVD.

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.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Authlib.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
authlibauthlib< 1.9.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.