CVE-2026-15747
JSON

9.1critical

Mojolicious versions from 4.59 before 9.48 for Perl expose a stable representation of the session CSRF token to a BREACH compression oracle

Severity
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.25% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

Description

Mojolicious versions from 4.59 before 9.48 for Perl expose a stable representation of the session CSRF token to a BREACH compression oracle. _csrf_token generates and caches one token per session and returns the same value on every call, and _csrf_field places that value in a hidden `csrf_token` input. When a response carrying the token also echoes attacker-controlled input and is gzip-compressed, the chosen values and the resulting compressed lengths form a BREACH oracle. An attacker able to query it can recover the token and pass csrf_protect validation.

Affected

Product or packageVersionsReported by
Mojoliciousfrom 4.59 before 9.48CVE List

Classification

CWE-204CWE-352

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Mojolicious versions from 4.59 before 9.48 for Perl expose a stable representation of the session CSRF token to a BREACH compression oracle. _csrf_token generates and caches one token per session and returns the same value on every call, and _csrf_field places that value in a hidden `csrf_token` input. When a response carrying the token also echoes attacker-controlled input and is gzip-compressed, the chosen values and the resulting compressed lengths form a BREACH oracle. An attacker able to query it can recover the token and pass csrf_protect validation.

NVD (es)

Las versiones de Mojolicious desde la 4.59 anteriores a la 9.48 para Perl exponen una representación estable del token CSRF de la sesión a un oráculo de compresión BREACH. _csrf_token genera y almacena en caché un token por sesión y devuelve el mismo valor en cada llamada, y _csrf_field coloca ese valor en un campo de entrada oculto ’csrf_token’. Cuando una respuesta que lleva el token también hace eco de entrada controlada por el atacante y está comprimida con gzip, los valores elegidos y las longitudes comprimidas resultantes forman un oráculo BREACH. Un atacante capaz de consultarlo puede recuperar el token y pasar la validación de csrf_protect.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-15747 changed 2026-07-15CVE Terms of Use
NVDCVE-2026-15747 changed 2026-10-24Public domain