# PYSEC-2026-4356: 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-114616](https://cve.now/CVE-2026-114616.md): Authlib accepts an empty HMAC key, allowing JWS/JWT signature forgery (HS256/HS384/HS512)

## Also published as

- [GHSA-8M4G-J4WP-WGCG](https://cve.now/GHSA-8M4G-J4WP-WGCG.md) (GitHub)

## Affected versions

- authlib (PyPI): fixed in 1.9.1

## Description

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.

## References

- https://github.com/authlib/authlib/releases/tag/v1.9.1
- https://github.com/authlib/authlib/commit/4ff30db442c70e29486e1982cb0ad37c037f5f4b
- https://github.com/authlib/authlib/security/advisories/GHSA-8m4g-j4wp-wgcg

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

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