python-authlib — security advisory
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.
- Products
- python-authlib
- Affected versions
- 1.2.0-1, 1.6.0-1, 1.6.1-1, 1.6.3-1, 1.6.4-1, 1.6.5-1
- Fixed versions
- 1.2.0-1+deb12u1, 1.6.0-1+deb13u1, 1.6.6-1
- CVEs
- CVE-2025-68158
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 16:16 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2025-68158
python-authlib
Fixed versions: 1.2.0-1+deb12u1
python-authlib
Fixed versions: 1.6.0-1+deb13u1
python-authlib
Fixed versions: 1.6.6-1
Complete source record
{
"id": "8fbee0b00dceacb98a2c7cb89cdf913206daea1d8558ffe8836d18c622560d38",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-68158",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2025-68158",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2025-68158",
"products": [
{
"name": {
"value": "python-authlib",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.0-1+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "1.2.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-authlib",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.6.0-1+deb13u1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "1.6.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-authlib",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.6.6-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1.6.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.6.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.6.3-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.6.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.6.5-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2025-68158",
"aliases": [
"DEBIAN-CVE-2025-68158"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.0-1+deb12u1"
}
]
}
],
"package": {
"name": "python-authlib",
"purl": "pkg:deb/debian/python-authlib?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.2.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-68158.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.6.0-1+deb13u1"
}
]
}
],
"package": {
"name": "python-authlib",
"purl": "pkg:deb/debian/python-authlib?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.6.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-68158.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.6.6-1"
}
]
}
],
"package": {
"name": "python-authlib",
"purl": "pkg:deb/debian/python-authlib?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.6.0-1",
"1.6.1-1",
"1.6.3-1",
"1.6.4-1",
"1.6.5-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-68158.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T09:47:26.693096605Z",
"provider": "osv",
"upstream": [
"CVE-2025-68158"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2025-68158"
]
},
"related_cves": [
{
"value": "CVE-2025-68158",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 327323,
"published_at": "2026-01-08T18:15:59.06+00:00"
}