CVE Catalog

CVE-2025-61920

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.64%

50th percentile - higher than 50% of all known CVEs

Summary

Authlib versions prior to 1.6.5 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, leading to high CPU and memory consumption during verification, enabling denial of service.

Risk Assessment

An attacker can send malicious tokens, causing resource exhaustion and unavailability of the authentication service.

Recommendation

Update Authlib to version 1.6.5 or later; additionally enforce token size limits and application-level throttling.

Other vulnerabilities in Authlib

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS