cve.bz

CVE-2025-68158 authlib authlib: Cross Site Reference Forgery

8.8 highExploit referenceEPSS 0.3%Fix available

High (8.8) in authlib authlib. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in authlib 1.6.6.

On this page
Authlib is a Python library which builds OAuth and OpenID Connect servers. In versions 1.0.0 through 1.6.5, cache-backed state/request-token storage is not tied to the initiating user session, so CSRF is possible for any attacker that has a valid state (easily obtainable via an attacker-initiated authentication flow). When a cache is supplied to the OAuth client registry, FrameworkIntegration.set_state_data writes the entire state blob under _state_{app}_{state}, and get_state_data ignores the caller’s session altogether. This issue has been patched in version 1.6.6.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-01-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-352 Cross-Site Request Forgery (Cross Site Reference Forgery)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-68158 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-68158?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-68158?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-68158 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
authlib:authlibbefore 1.6.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fg6f-75jq-6523PyPIauthlib>=1.0.0 <1.6.61.6.6
PYSEC-2026-1201PyPIauthlib>=1.0.0 <1.6.61.6.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-authlib1.2.0-1+deb12u1DEBIAN-CVE-2025-68158
Debian13python-authlib1.6.0-1+deb13u1DEBIAN-CVE-2025-68158
Debian14python-authlib1.6.6-1DEBIAN-CVE-2025-68158
Ubuntu25.10python-authlibno fix listedUBUNTU-CVE-2025-68158
UbuntuPro:22.04:LTSpython-authlib0.15.5-1ubuntu0.1~esm1USN-8065-1
UbuntuPro:24.04:LTSpython-authlib1.3.0-1ubuntu0.1~esm1UBUNTU-CVE-2025-68158 USN-8065-1
SUSELinux Enterprise Module for Python 3 15 SP7python-Authlib1.3.1-150600.3.14.1SUSE-SU-2026:0828-1
openSUSELeap 15.6python-Authlib1.3.1-150600.3.14.1SUSE-SU-2026:0828-1
openSUSELeap 16.0python-Authlib1.5.2-bp160.2.1openSUSE-SU-2026:20257-1
openSUSETumbleweedpython-Authlib1.6.6-1.1openSUSE-SU-2026:10034-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate for Red Hat products utilizing Authlib, such as Red Hat Ansible Automation Platform, Hosted OpenShift Clusters, Red Hat Quay, and Red Hat Satellite. The flaw arises from improper session management in Authlib's cache-backed state storage, allowing a remote attacker to perform Cross-Site Request Forgery (CSRF) by obtaining a valid state.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Quay 3.15quay/quay-rhel8:1775169219Fixed 2026-04-03RHSA-2026:6568
Red Hat Quay 3.16quay/quay-rhel9:1775069491Fixed 2026-04-02RHSA-2026:6497
Red Hat Quay 3.16quay/quay-rhel9:1775169226Fixed 2026-04-03RHSA-2026:6567
Red Hat Satellite 6.18satellite/foreman-mcp-server-rhel9:1782228427Fixed 2026-06-23RHSA-2026:28405
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-chatbot-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-68158.

Attack patterns (CAPEC)

  • CAPEC-62 Cross Site Request Forgery Likelihood: High · Severity: Very High
  • CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) Likelihood: High · Severity: High
  • CAPEC-462 Cross-Domain Search Timing Severity: Medium
  • CAPEC-467 Cross Site Identification Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON