CVE-2026-41425

Authlib: Cross-site request forging when using cache

Published Apr 24, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.6.11, there is no CSRF protection on the cache feature in authlib.integrations.starlette_client.OAuth. This vulnerability is fixed in 1.6.11.

Analysis

AI-generated

Technical impact

Authlib, a Python library for OAuth and OpenID Connect servers, had a flaw in the cache feature of its Starlette client integration where no CSRF protection was in place. Because of this, malicious actors could trick users into sending requests that the application would process as if they were legitimate. The vulnerability is categorized as CWE‑352 (Cross‑Site Request Forgery) and CWE‑807 (Protection Mechanism Failure).

Affected Systems

The flaw applies to any deployment of Authlib prior to version 1.6.11 that uses the authlib.integrations.starlette_client.OAuth module. Any Python application incorporating Authlib for OAuth authentication and enabling the cache functionality is potentially affected.

Risk and Exploitability

The flaw combines a protection mechanism failure (CWE‑807) and a missing CSRF guard (CWE‑352). The CVSS score of 5.4 indicates a medium severity rating. The EPSS score of less than 1% suggests a low likelihood of exploitation at present, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need to target a user who has already authenticated with the application and use the cache function to form a forged request. The attack vector is likely browser‑based and requires the victim to interact with the attacker’s web content, which reduces but does not eliminate exploitability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Authlib to version 1.6.11 or later, which adds CSRF protection for the cache feature.
  • If an immediate upgrade is not possible, add CSRF safeguards such as enforcing same‑site cookies or inserting explicit CSRF tokens into the OAuth flow used by the application.
  • Alternatively, disable or avoid using the cache feature in authlib.integrations.starlette_client.OAuth until the patch is applied.

Generated by OpenCVE AI on May 4, 2026 at 13:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4708-1 python-authlib security update
Github GHSA Github GHSA GHSA-jj8c-mmj3-mmgv Authlib: Cross-site request forging when using cache
Ubuntu USN Ubuntu USN USN-8557-1 Authlib vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Authlib
Authlib authlib
Vendors & Products Authlib
Authlib authlib
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.6.11, there is no CSRF protection on the cache feature in authlib.integrations.starlette_client.OAuth. This vulnerability is fixed in 1.6.11.
Title Authlib: Cross-site request forging when using cache
Weaknesses CWE-352
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

  • CWE-807

    Reliance on Untrusted Inputs in a Security Decision

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 27, 2026, 1:35 PM
Reserved
Apr 20, 2026, 3:32 PM
Status
Analyzed
Published
Apr 24, 2026, 8:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 24, 2026, 7:14 PM