CVE-2025-65015 json
joserfc has Possible Uncontrolled Resource Consumption Vulnerability Triggered by Logging Arbitrarily Large JWT Token Payloads
published 2025-11-18 11 mo ago modified 2026-10-27 13 d ago also GHSA-frfh-8v73-gjg4 , PYSEC-2026-361 , EUVD-2025-198059
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi joserfc 1.3.5, 1.4.2
- hsiaoming joserfc 1.3.5, 1.4.2
- joserfc Debian 14 1.4.3-1
debian advisories DEBIAN-CVE-2025-65015
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-65015 updated cvss 5.9
joserfc: joserfc: Arbitrarily large JWT payloads in logs via exception messages
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 11 mo ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/authlib/joserfc/security/advisories/GHSA-frfh-8v73-gjg4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.2 | 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 |
| CNA | 4.0 | 9.2 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | joserfc | >=1.3.3, <1.3.5 >=1.4.0, <1.4.2 |
1.3.5 1.4.2 |
Affected products
- authlib joserfc
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
References
-
github.com
/authlib/joserfc/commit/63932f169d924caffafa761af2122b82059017f7
web, patch
-
github.com
/authlib/joserfc/commit/673c8743fd0605b0e1de6452be6cba75f44e466b
web, patch
-
github.com
/authlib/joserfc/security/advisories/GHSA-frfh-8v73-gjg4
exploit, web, vendor-advisory
-
github.com
/authlib/joserfc/releases/tag/1.3.5
web, release-notes
-
github.com
/authlib/joserfc/releases/tag/1.4.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-65015
advisory
-
github.com
/authlib/joserfc
package
-
github.com
/pypa/advisory-database/tree/main/vulns/joserfc/PYSEC-2026-361.yaml
web
-
pypi.org
/project/joserfc
web, package
-
github.com
/advisories/GHSA-frfh-8v73-gjg4
advisory
Sources
- CVE List CVE-2025-65015
- GitHub Advisory GHSA-frfh-8v73-gjg4
- NVD CVE-2025-65015
- OSV PYSEC-2026-361
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.