CVE-2025-68158: Kaskade · Authlib has 1-click Account Takeover vulnerability
Affects kaskadeSource GCVE Database
Not known to be exploited · CVSS 5.7 Medium : upgrade to 4.0.6_2 when convenient.
Data as of 26 Nov 2026, 21:22 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.0.6_2, 1.6.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Oct 2026.
What to do
Upgrade kaskade to 4.0.6_2; authlib to 1.6.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewkaskadepkg:brew/kaskadeOther threats | Affected
| Fixed in
|
PyPIauthlibpkg:pypi/authlibOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Authlib version 4.0.6_2. Applications using affected versions should upgrade to 4.0.6_2 or later. The vulnerability can be mitigated by ensuring the OAuth state parameter is tied to the user's session, either by continuing to store state in the session even when caching is enabled or by incorporating a session-specific secret (e.g., a hash of the session ID) into the cache key. This ensures that state data cannot be reused across sessions, preventing CSRF-based account takeover.
Description
A vulnerability in Authlib's cache-backed state storage allows Cross-Site Request Forgery (CSRF) leading to a one-click account takeover in applications using Authlib. The issue arises because the OAuth state parameter is stored in a cache without binding it to the user's session, enabling attackers to reuse a valid state value to hijack OAuth flows. This can cause an attacker-initiated OAuth authorization code to be accepted in the context of a victim's session, potentially linking the attacker's SSO identity to the victim's account. The flaw affects Authlib versions >=4.0.4 and <4.0.6_2 and has been fixed in version 4.0.6_2. The vulnerability has a CVSS score of 5.7 (medium severity).
References
- github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-68158 (opens in a new tab)
- github.com/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489 (opens in a new tab)
- github.com/authlib/authlib/commit/7974f45e4d7492ab5f527577677f2770ce423228 (opens in a new tab)
- github.com/authlib/authlib (opens in a new tab)