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 package | Versions | Reported by |
|---|---|---|
| Mojolicious | from 4.59 before 9.48 | CVE List |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-15747 changed 2026-07-15 | CVE Terms of Use |
| NVD | CVE-2026-15747 changed 2026-10-24 | Public domain |