Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-65015

CRITICAL 9.2EPSS 39%

joserfc has Possible Uncontrolled Resource Consumption Vulnerability Triggered by Logging Arbitrarily Large JWT Token Payloads

Also known as GHSA-frfh-8v73-gjg4, PYSEC-2026-361

Mitigation

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

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

Vulnerability facts

Affected
joserfc >= 1.3.3, < 1.3.5
Fixed in
1.3.5, 1.4.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:HOpen in CVSS calculator
Show all 11 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
EPSS
0.54% chance of exploitation in 30 days (percentile 39, 2026-11-26)
CWE
CWE-770
Published
Modified

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

Package / productAffectedFixedSource
PyPI joserfc>= 1.3.3, < 1.3.51.3.5, 1.4.2osv
authlib joserfc>= 1.3.3, < 1.3.5; >= 1.4.0, < 1.4.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors