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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-10T19:25:07.679Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-pq5p-34cr-23v9, PYSEC-2026-1203
- Weaknesses: CWE-20, CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- authlib authlib: < 1.6.5; before 1.6.5
- authlib (PyPI): before 1.6.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61920> (advisory)
- <https://github.com/authlib/authlib> (package)
- <https://pypi.org/project/authlib> (package)
- <https://github.com/advisories/GHSA-pq5p-34cr-23v9> (advisory)

## Sources

- CVE List: [CVE-2025-61920](https://www.cve.org/CVERecord?id=CVE-2025-61920), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-pq5p-34cr-23v9](https://github.com/advisories/GHSA-pq5p-34cr-23v9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-61920](https://nvd.nist.gov/vuln/detail/CVE-2025-61920), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1203](https://osv.dev/vulnerability/PYSEC-2026-1203), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-61920 · Whole record: https://cve.day/CVE-2025-61920.json · Rebuilt by cve.day 2026-11-25T22:59:05.774Z
