VDB
Sign up
CRITICAL9.1

PYSEC-2026-4356

Quick fix

PYSEC-2026-4356 — authlib: upgrade to the fixed version with the command below.

pip install --upgrade 'authlib>=1.9.1'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/authlib
Introduced in: 0Fixed in: 1.9.1
Fixpip install --upgrade 'authlib>=1.9.1'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/authlib"]}'