# PYSEC-2026-4358: Authlib is a Python library which builds OAuth and OpenID Connect servers

- Database: PyPA
- Published: 2026-10-22
- Modified: 2026-10-30

## Tracked as

- [CVE-2026-114618](https://cve.now/CVE-2026-114618.md): Authlib: Default JWT bearer grant accepts assertions for the wrong audience

## Also published as

- [GHSA-FCH4-3C6X-J4GC](https://cve.now/GHSA-FCH4-3C6X-J4GC.md) (GitHub)

## Affected versions

- authlib (PyPI): fixed in 1.9.0

## Description

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, the default RFC 7523 JWTBearerGrant.get_audiences() returns an empty list, causing JWTBearerGrant.verify_claims() to require only that an aud claim exists without matching the current authorization server. An attacker holding a legitimate assertion for another service can present it to a server that shares the signing key and uses the default grant, obtaining an access token across a trust boundary. Implementations that override get_audiences() with the server's valid audience identifiers are not affected. This issue is fixed in version 1.9.0.

## References

- https://github.com/authlib/authlib/releases/tag/v1.9.0
- https://github.com/authlib/authlib/commit/e3bd41cb29dcfee434453b135ffb487884baeedf
- https://github.com/authlib/authlib/pull/945
- https://github.com/authlib/authlib/security/advisories/GHSA-fch4-3c6x-j4gc

Page: https://cve.now/PYSEC-2026-4358

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
