Home

Description

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.

PUBLISHED Reserved 2025-10-03 | Published 2025-10-10 | Updated 2025-10-10 | Assigner GitHub_M




HIGH: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Problem types

CWE-20: Improper Input Validation

CWE-400: Uncontrolled Resource Consumption

CWE-770: Allocation of Resources Without Limits or Throttling

Product status

< 1.6.5
affected

References

github.com/...uthlib/security/advisories/GHSA-pq5p-34cr-23v9

github.com/...ommit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e

cve.org (CVE-2025-61920)

nvd.nist.gov (CVE-2025-61920)

Download JSON