CVE-2026-15747: CWE-204 Observable Response Discrepancy in SRI Mojolicious
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.
AI Analysis
Technical Summary
This vulnerability in Mojolicious affects versions from 4.59 before 9.48 for Perl. The _csrf_token method generates a single token per session that is reused and placed in a hidden input field by _csrf_field. When responses containing this token also echo attacker-controlled input and are gzip-compressed, the compression length variations can be used as a BREACH oracle to recover the CSRF token. An attacker who can query such responses can extract the token and bypass csrf_protect validation, potentially enabling cross-site request forgery attacks.
Potential Impact
An attacker able to send requests that cause the server to respond with gzip-compressed content containing both the CSRF token and attacker-controlled input can exploit compression side-channel attacks (BREACH) to recover the CSRF token. This allows the attacker to bypass CSRF protections, increasing the risk of unauthorized actions performed on behalf of authenticated users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is documented in the provided data. Until a fix is available, consider disabling gzip compression on responses that include CSRF tokens or avoid reflecting attacker-controlled input in such responses to mitigate the risk.
CVE-2026-15747: CWE-204 Observable Response Discrepancy in SRI Mojolicious
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.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Mojolicious affects versions from 4.59 before 9.48 for Perl. The _csrf_token method generates a single token per session that is reused and placed in a hidden input field by _csrf_field. When responses containing this token also echo attacker-controlled input and are gzip-compressed, the compression length variations can be used as a BREACH oracle to recover the CSRF token. An attacker who can query such responses can extract the token and bypass csrf_protect validation, potentially enabling cross-site request forgery attacks.
Potential Impact
An attacker able to send requests that cause the server to respond with gzip-compressed content containing both the CSRF token and attacker-controlled input can exploit compression side-channel attacks (BREACH) to recover the CSRF token. This allows the attacker to bypass CSRF protections, increasing the risk of unauthorized actions performed on behalf of authenticated users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is documented in the provided data. Until a fix is available, consider disabling gzip compression on responses that include CSRF tokens or avoid reflecting attacker-controlled input in such responses to mitigate the risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-07-14T15:03:43.632Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56768c68715ace43f08bb7
Added to database: 07/14/2026, 17:49:00 UTC
Last enriched: 07/15/2026, 00:49:09 UTC
Last updated: 08/27/2026, 22:52:09 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.