# CVE-2025-65015: joserfc has Possible Uncontrolled Resource Consumption Vulnerability Triggered by Logging Arbitrarily Large JWT Token Payloads

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.2
- **CVSS:** 9.2 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.54% (percentile 39, 2026-11-26)
- **CWE:** CWE-770
- **Aliases:** GHSA-frfh-8v73-gjg4, PYSEC-2026-361
- **Published:** 2025-11-18T18:26:04.000Z
- **Modified:** 2026-10-27T17:45:03.878Z

## Who should check

- Projects that depend on PyPI package joserfc (\>= 1.3.3, \< 1.3.5)
- Anyone running authlib joserfc \>= 1.3.3, \< 1.3.5; \>= 1.4.0, \< 1.4.2

## Description

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. In versions from 1.3.3 to before 1.3.5 and from 1.4.0 to before 1.4.2, the ExceededSizeError exception messages are embedded with non-decoded JWT token parts and may cause Python logging to record an arbitrarily large, forged JWT payload. In situations where a misconfigured — or entirely absent — production-grade web server sits in front of a Python web application, an attacker may be able to send arbitrarily large bearer tokens in the HTTP request headers. When this occurs, Python logging or diagnostic tools (e.g., Sentry) may end up processing extremely large log messages containing the full JWT header during the joserfc.jwt.decode() operation. The same behavior also appears when validating claims and signature payload sizes, as the library raises joserfc.errors.ExceededSizeError() with the full payload embedded in the exception message. Since the payload is already fully loaded into memory at this stage, the library cannot prevent or reject it. This issue has been patched in versions 1.3.5 and 1.4.2.

## Affected and fixed versions

- PyPI `joserfc`: affected \>= 1.3.3, \< 1.3.5; fixed 1.3.5, 1.4.2 (osv)
- authlib joserfc: \>= 1.3.3, \< 1.3.5; \>= 1.4.0, \< 1.4.2 (cvelist)

## Mitigation

- Upgrade joserfc to one of 1.3.5, 1.4.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-65015. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-65015.md
Affected: joserfc >= 1.3.3, < 1.3.5
Fixed in: 1.3.5, 1.4.2

Steps:
1. Search this machine and project for joserfc (PyPI), authlib joserfc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-65015 being exploited?

There is no confirmed exploitation: CVE-2025-65015 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-65015?

Critical: CVSS 9.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-65015?

joserfc \>= 1.3.3, \< 1.3.5.

### Is there a fix for CVE-2025-65015?

Yes. Fixed in 1.3.5, 1.4.2. Upgrade joserfc to one of 1.3.5, 1.4.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-65015?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/authlib/joserfc/security/advisories/GHSA-frfh-8v73-gjg4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-65015>
- vendor: <https://github.com/advisories/GHSA-frfh-8v73-gjg4>
- patch: <https://github.com/authlib/joserfc/commit/63932f169d924caffafa761af2122b82059017f7>
- patch: <https://github.com/authlib/joserfc/commit/673c8743fd0605b0e1de6452be6cba75f44e466b>
- other: <https://github.com/authlib/joserfc/releases/tag/1.3.5>
- other: <https://github.com/authlib/joserfc/releases/tag/1.4.2>
- other: <https://github.com/authlib/joserfc>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/joserfc/PYSEC-2026-361.yaml>
- other: <https://pypi.org/project/joserfc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-65015>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-frfh-8v73-gjg4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-361> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-65015> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-65015>
