Skip to main content

Authlib CVE-2026-41425

| EUVDEUVD-2026-25615 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-04-24 GitHub_M
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious link
  2. Delivery
    User clicks link while using OAuth application
  3. Exploit
    CSRF payload reaches Starlette cache
  4. Execution
    OAuth state corrupted
  5. Persist
    Attacker intercepts or hijacks OAuth flow
  6. Impact
    User's session or tokens compromised

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires a user to click a malicious link or submit a form while authenticated to a web application using Authlib's Starlette OAuth client with the cache feature enabled. The Starlette OAuth integration must be configured and actively used for authentication. Default Starlette configurations without explicit CSRF middleware bypass are vulnerable. No special privilege escalation or authentication is required from the attacker, but the attack cannot succeed without user interaction (UI:R in CVSS vector). Exploitation is further limited to scenarios where the application does not implement additional CSRF protections (e.g., CSRF tokens, SameSite cookies).

Impact

CVSS 5.4 with network vector (AV:N), low complexity (AC:L), no authentication required (PR:N), but user interaction mandatory (UI:R) places this in moderate-risk territory. The CVSS score reflects partial impact (C:L/I:L/A:N) - confidentiality and integrity compromised but not availability. EPSS score not provided in input, preventing probabilistic exploitation assessment. No CISA KEV status or confirmed public exploit code provided; no active exploitation detected at submission. The user-interaction requirement (clicking a malicious link) significantly limits real-world attack surface compared to an automated exploitation scenario. However, in OAuth/OpenID flows, CSRF on state caches can escalate to full account compromise if tokens are leaked or sessions hijacked. Risk priority depends on deployment: low for internal/trusted-network OAuth flows; moderate to high for public-facing applications where users click external links. The fix is available (v1.6.11), reducing urgency but not eliminating risk for unpatched installations.

Exploit ScenarioDerived

An attacker crafts a malicious link or form submission targeting a web application using Authlib's Starlette OAuth client. When a logged-in user clicks the link, the attacker's CSRF payload manipulates the OAuth state cache, potentially binding the user's session to attacker-controlled OAuth credentials or redirecting the authorization flow to capture sensitive tokens. No public exploit code is referenced in available data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 24, 2026

Cross-site request forgery (CSRF) in Authlib's Starlette OAuth client cache feature (versions prior to 1.6.11) allows unauthenticated remote attackers to forge requests that manipulate cached OAuth state, potentially leading to session hijacking or token theft. The vulnerability requires user interaction (UI:R) and affects confidentiality and integrity. Vendor-released patch: version 1.6.11.

RemediationAI

Upgrade Authlib to version 1.6.11 or later immediately. For Python environments using pip, execute: pip install --upgrade authlib>=1.6.11. Verify the installed version with pip show authlib. If immediate upgrade is not feasible, configure Starlette middleware to enforce SameSite=Strict cookies and implement explicit CSRF token validation on all OAuth callback handlers using Starlette's built-in CSRF middleware until patching is complete. This reduces but does not eliminate risk. Review GitHub Security Advisory GHSA-jj8c-mmj3-mmgv (https://github.com/authlib/authlib/security/advisories/GHSA-jj8c-mmj3-mmgv) for additional context and confirmation of fix.

Affected VersionsENISA

authlib < 1.6.11

Affected Packages

pypi authlib fix: 1.6.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Authlib is a Python library implementing OAuth 2.0 and OpenID Connect server/client functionality. The vulnerability resides in the authlib.integrations.starlette_client.OAuth module, specifically in cache handling mechanisms used during the OAuth authorization flow. The root cause is CWE-352 (Cross-Site Request Forgery), indicating missing or insufficient CSRF token validation on state-cache operations in the Starlette integration. This affects the confidentiality and integrity of OAuth session management in web applications using this integration.

Know when Authlib gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
SUSE MEDIUM
Red Hat 5.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
Patch released
Apr 28, 2026 - 18:18 nvd
Patch available
Patch available
Apr 24, 2026 - 21:02 EUVD
CVE Published
Apr 24, 2026 - 19:14 nvd
MEDIUM 5.4

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

CVE-2025-68158 HIGH POC
8.8 Jan 08

Authlib is a Python library which builds OAuth and OpenID Connect servers. [CVSS 5.7 MEDIUM]

CVE-2026-28802 HIGH POC
7.7 Mar 06

Authentication bypass in Authlib (Python OAuth/OpenID Connect library) versions 1.6.5 through 1.6.6 allows remote attack

CVE-2025-59420 HIGH POC
7.5 Sep 22

Authlib is a Python library which builds OAuth and OpenID Connect servers. Rated high severity (CVSS 7.5), this vulnerab

CVE-2025-61920 HIGH POC
7.5 Oct 10

Authlib's JOSE/JWS verification path (through 1.6.4, with 1.6.5 as the fix) decodes attacker-supplied JWT/JWS header and

CVE-2024-37568 HIGH POC
7.5 Jun 09

lepture Authlib before 1.3.1 has algorithm confusion with asymmetric public keys. Rated high severity (CVSS 7.5), this v

CVE-2026-119284 MEDIUM POC
6.9 Oct 29

Memory exhaustion in joserfc before 1.7.6 allows remote unauthenticated attackers to force a roughly token-sized extra a

CVE-2025-62706 MEDIUM POC
6.5 Oct 22

Unbounded DEFLATE decompression in Authlib's JWE zip=DEF handling (authlib/jose/rfc7518/jwe_zips.py) lets a small, valid

CVE-2026-96760 CRITICAL
9.8 Sep 28

Signature verification bypass in Authlib 1.7.2 and earlier allows unauthenticated remote attackers to have crafted JWS J

CVE-2026-104056 CRITICAL
9.8 Oct 01

Poisoned OAuth/OIDC discovery metadata in Authlib 1.7.2 and earlier allows an attacker who controls or intercepts the me

CVE-2026-114620 MEDIUM POC
5.4 Oct 22

Server-side request forgery in Authlib's RFC 9101 JWTAuthenticationRequest (JAR) extension lets unauthenticated remote a

CVE-2026-48990 MEDIUM POC
5.3 Jun 17

Resource exhaustion in joserfc (versions 1.3.4-1.6.5) is possible because the RFC7797 unencoded-payload (b64=false) JWS

CVE-2026-114616 CRITICAL
9.1 Oct 22

Token forgery in the Authlib Python library before 1.9.1 lets a remote, unauthenticated attacker mint HS256, HS384 or HS

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Python 3 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy