CVE-2025-65015

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

Configuration 1 (hide)

OR cpe:2.3:a:hsiaoming:joserfc:*:*:*:*:*:python:*:*
cpe:2.3:a:hsiaoming:joserfc:*:*:*:*:*:python:*:*

History

18 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) joserfc es una biblioteca de Python que proporciona una implementación de varios estándares de Firma y Cifrado de Objetos JSON (JOSE). En las versiones desde la 1.3.3 hasta la 1.3.5 y desde la 1.4.0 hasta la 1.4.2, los mensajes de excepción 'ExceededSizeError' incrustan partes de tokens JWT no decodificadas y pueden causar que el registro de Python grabe una carga útil JWT falsificada y arbitrariamente grande. En situaciones donde un servidor web de grado de producción mal configurado - o completamente ausente - se encuentra frente a una aplicación web de Python, un atacante podría enviar tokens portadores arbitrariamente grandes en los encabezados de solicitud HTTP. Cuando esto ocurre, el registro de Python o las herramientas de diagnóstico (p. ej., Sentry) pueden terminar procesando mensajes de registro extremadamente grandes que contienen el encabezado JWT completo durante la operación 'joserfc.jwt.decode()'. El mismo comportamiento también aparece al validar las reclamaciones y los tamaños de la carga útil de la firma, ya que la biblioteca lanza 'joserfc.errors.ExceededSizeError()' con la carga útil completa incrustada en el mensaje de excepción. Dado que la carga útil ya está completamente cargada en la memoria en esta etapa, la biblioteca no puede prevenirla ni rechazarla. Este problema ha sido parcheado en las versiones 1.3.5 y 1.4.2.

Information

Published : 2025-11-18 23:15

Updated : 2026-10-18 20:10


NVD link : CVE-2025-65015

Mitre link : CVE-2025-65015

CVE.ORG link : CVE-2025-65015


JSON object : View

Products Affected

hsiaoming

  • joserfc
CWE
CWE-770

Allocation of Resources Without Limits or Throttling