p PatchFirst

CVE-2025-68158

CVE-2025-68158 · Authlib: 1-click Account Takeover

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.7 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • authlib

    Versions
    • >= 1.0.0, < 1.6.6: Affected

    No fix published

  • python-authlib Debian:12

    Versions
    • 1.2.0-1
    Affected ranges
    • ECOSYSTEM: < 1.2.0-1+deb12u1

    Update to 1.2.0-1+deb12u1

  • python-authlib Debian:13

    Versions
    • 1.6.0-1
    Affected ranges
    • ECOSYSTEM: < 1.6.0-1+deb13u1

    Update to 1.6.0-1+deb13u1

  • python-authlib Debian:14

    Versions
    • 1.6.0-1
    • 1.6.1-1
    • 1.6.3-1
    • 1.6.4-1
    • 1.6.5-1
    Affected ranges
    • ECOSYSTEM: < 1.6.6-1

    Update to 1.6.6-1

  • authlib PyPI

    Versions
    • 1.0.0
    • 1.0.1
    • 1.1.0
    • 1.2.0
    • 1.2.1
    • 1.3.0
    • 1.3.1
    • 1.3.2
    • 1.4.0
    • 1.4.1
    • 1.5.0
    • 1.5.1
    • 1.5.2
    • 1.6.0
    • 1.6.1
    • 1.6.2
    • 1.6.3
    • 1.6.4
    • 1.6.5
    Affected ranges
    • ECOSYSTEM: ≥ 1.0.0, < 1.6.6

    Update to 1.6.6

  • python-authlib Ubuntu:Pro:24.04:LTS

    Versions
    • 1.2.1-1
    • 1.3.0-1
    Affected ranges
    • ECOSYSTEM: < 1.3.0-1ubuntu0.1~esm1

    Update to 1.3.0-1ubuntu0.1~esm1

  • python-authlib Ubuntu:25.10

    Versions
    • 1.5.1-1
    • 1.5.2-1
    • 1.6.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →