VDB
Sign up
MEDIUM4.6

PYSEC-2026-4359

Quick fix

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

pip install --upgrade 'authlib>=1.9.0'

Details

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, OpenIDImplicitGrant.validate_authorization_request() checks the client-controlled raw request.payload.scope for openid after the parent grant has filtered allowed scopes into request.scope. A registered client permitted an ID token response type but not the openid scope can add openid to the request, obtain user consent, and receive a signed ID token containing the user's subject and allowed profile claims. Authorization code flow and deployments that allow openid for every client permitted an ID token response are not affected. In authlib/oidc/core/grants/implicit.py, OpenIDImplicitGrant.validate_authorization_request() checks request.payload.scope instead of the filtered request.scope. This issue is fixed in version 1.9.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

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"]}'