CVE-2026-15747 Details
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.
A vulnerability in Mojolicious for Perl, specifically in versions 4.59 prior to 9.48, allows for the session CSRF token to be exposed to a BREACH compression oracle. The vulnerability arises because the _csrf_token method generates and caches a single token per session, returning the same value with each call. The _csrf_field method places this token into a hidden input. When a response includes this token, echoes attacker-controlled input, and is gzip-compressed, the lengths of the compressed data create a BREACH oracle. An attacker can exploit this to recover the CSRF token and bypass CSRF protection.
Users are advised to upgrade to Mojolicious version 9.48 or later, where this vulnerability has been fixed. In the patched version, CSRF tokens are no longer static and are masked with a random value on each request, preventing BREACH attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 14, 2026CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mojolicious/mojo/commit/01921fbbbbeca2d1397e082d4a647f9b84c24e27.patch | CPANSec | Source Code |
| https://metacpan.org/release/SRI/Mojolicious-9.48/changes | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/07/14/16 | CVE | Mailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-204 | Observable Response Discrepancy | CPANSec |
| CWE-352 | Cross-Site Request Forgery (CSRF) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Mojolicious | >= 4.59, < 9.48 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | CVE Modified | CVE |
| Jul 14, 2026 | New CVE Received | CPANSec |
Volerion