Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokens (authlib authlib)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.16 % Β· percentile 5 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
Description
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.
Weaknesses (CWE)
- CWE-863 β Incorrect Authorization
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-q686-2qmg-hqc7 β Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokens
European references
- ENISA EUVD Β· EUVD-2026-108521
- GCVE Β· GCVE-0-2026-114619
Affected configurations (NVD CPE)
cpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:*< 1.9.0
Affected products
| Product | Versions |
|---|---|
| authlib Β· authlib | affected < 1.9.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |