Skip to main content
VulnerabilityPublished Updated

CVE-2025-61920: Authlib is vulnerable to Denial of Service via Oversized JOSE Segments

Affects authlibSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 1.6.5 soon.

Data as of 29 Oct 2026, 23:57 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 29 Oct 2026.

What to do

Upgrade authlib to 1.6.5.

Affected software

ProductAffectedFixed in
PyPIauthlibAffected
  • <1.6.5
Fixed in
  • 1.6.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Authlib version 1.6.5 that enforces a 256 KB limit on decoded JWS/JWT header and signature segments. Deploy this patched release immediately to remediate the vulnerability. As additional defense in depth, reject JWS/JWT inputs exceeding a few kilobytes at the proxy or WAF layer and apply rate limiting on verification endpoints. Temporary workarounds include enforcing input size limits before passing tokens to Authlib and using application-level throttling to reduce amplification risk.

Description

Authlib versions up to 1.6.3 have a vulnerability in their JOSE implementation where unbounded JWS/JWT header and signature segments can be oversized. An attacker can submit tokens with base64url-encoded segments hundreds of megabytes in size, causing excessive CPU and memory usage during verification and resulting in denial of service. The issue is fixed in version 1.6.5 by enforcing a 256 KB size limit on these segments.

References

Community reviews

Loading reviews…