VAITP Dataset

← Back to the dataset

CVE-2026-116672

OAuth client registration endpoint allows token‑holder to modify other clients.

  • CVSS 8.8
  • CWE-639
  • Authentication, Authorization, and Session Management
  • Remote

Authlib is a Python library which builds OAuth and OpenID Connect servers. From 0.15 until 1.9.1, the documented ClientConfigurationEndpoint.authenticate_client and ClientConfigurationEndpoint.check_permission reference implementations look up a target client from request-controlled client_id data and check only whether that target is editable, without verifying that request.credential belongs to the target client. Deployments following both examples can allow a client holding any valid registration access token to read, modify, or delete another client's registration. Changing redirect_uris can enable authorization code or token interception, while deleting registrations can deny service to affected clients. This issue is fixed in version 1.9.1.

CVSS base score
8.8
Published
2026-10-27
OWASP
A01 Broken Access Control
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Authentication, Authorization, and Session Management
Subcategory
Privilege Escalation
Accessibility scope
Remote
Impact
Unauthorized Access
Affected component
Python
Fixed by upgrading
Yes

Solution

Upgrade Authlib to version 1.9.1 or later.

Vulnerable code sample

from authlib.oauth2.rfc7592 import ClientConfigurationEndpoint
from authlib.oauth2.rfc6749 import OAuth2Error

class MyClientConfigEndpoint(ClientConfigurationEndpoint):
    def authenticate_client(self):
        # VULNERABLE: does not verify credential belongs to target client
        cred = self.get_credential()
        client_id = self.request.form.get('client_id')
        client = self.get_client_by_id(client_id)
        if not client:
            raise OAuth2Error('invalid_client')
        # only checks editability, not ownership
        if not client.editable:
            raise OAuth2Error('unauthorized_client')
        self.request.credential = cred
        return cred

    def check_permission(self, client):
        # VULNERABLE: permission based solely on editability
        if not client.editable:
            raise OAuth2Error('insufficient_scope')

Patched code sample

from authlib.oauth2.rfc7592 import ClientConfigurationEndpoint
from authlib.oauth2.rfc6749 import OAuth2Error

class MyClientConfigEndpoint(ClientConfigurationEndpoint):
    def authenticate_client(self):
        # FIX: verify credential's client_id matches target client
        cred = self.get_credential()
        client_id = self.request.form.get('client_id')
        client = self.get_client_by_id(client_id)
        if not client:
            raise OAuth2Error('invalid_client')
        # ensure the token belongs to the client being accessed
        if cred.client_id != client.client_id:
            raise OAuth2Error('invalid_token')
        if not client.editable:
            raise OAuth2Error('unauthorized_client')
        self.request.credential = cred
        return cred

    def check_permission(self, client):
        # FIX: permission also requires ownership verification
        cred = self.request.credential
        if cred.client_id != client.client_id or not client.editable:
            raise OAuth2Error('insufficient_scope')

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

  • Merge commit from fork (authlib/authlib)
    authlib/oauth2/rfc7592/endpoint.py · ClientConfigurationEndpoint.authenticate_client, authlib/oauth2/rfc7592/endpoint.py · ClientConfigurationEndpoint.authenticate_token, authlib/oauth2/rfc7592/endpoint.py · ClientConfigurationEndpoint.create_configuration_response

Cite this entry

@misc{vaitp:cve2026116672,
  title        = {{OAuth client registration endpoint allows token‑holder to modify other clients.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-116672},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116672/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.