All vulnerabilities

PyPI

CVE-2026-114618

Authlib: Default JWT bearer grant accepts assertions for the wrong audience

Severity
Medium 6.8
Published
27 Oct 2026
Last changed
30 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.9.0
Exploit chance
0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Insecure default (CWE-1188)Improper authentication (CWE-287)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Also known as
GHSA-fch4-3c6x-j4gc, PYSEC-2026-4358
Sources
OSV.dev and GitHub

Description

Authlib's default RFC 7523 JWT bearer grant leaves get_audiences() empty, so verify_claims() only checks that an aud claim exists instead of requiring it to match the current authorization server's token endpoint. An attacker holding a legitimately issued JWT assertion for any audience can present it to a different authorization server sharing the same signing key and obtain an access token.

To be completely transparent, AI tools helped surface it. However, we have independently reproduced and carefully validated the issue. We follow responsible disclosure practices and are sharing this privately.

  • Default grant (vulnerable): HTTP 200, access_token issued despite aud: "https://evil.test/token"
  • Strict grant (fixed): HTTP 400, error: "invalid_grant" — correctly rejects mismatched audience
  • Confirms the default get_audiences() returns empty, so audience validation is effectively skipped
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
authlibPyPI · osv:PyPI:authlib
  • Every version before 1.9.0

About authlib

Weekly downloads (PyPI)
38,222,635PyPI Stats, 23 Nov 2026

References