CVE-2026-77568: Mojolicious: CSRF tokens are vulnerable to BREACH attacks

Published Sep 18, 2026
·
Updated

Mojolicious is a real-time web framework for Perl. Prior to 9.48, the Mojolicious CSRF helpers csrffield, csrftoken, and csrfprotect reuse an unchanged per-session token in rendered HTML. When response compression is enabled and attacker-influenced content is reflected in the same response, an unauthenticated attacker who can induce many victim requests and observe response sizes can use a BREACH compression side channel to recover the token and forge cross-site requests. API-only deployments that never render the token in HTML are not affected. This issue is fixed in version 9.48.

Affected Software

1 affected component
Mojolicious<9.48

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mojolicious to a version that resolves this vulnerability.

    Fixed in 9.48
  2. Compensating control

    If you use Mojolicious response compression, mitigate BREACH by ensuring attacker-influenced reflected content and CSRF-protected responses are not compressed together (e.g., disable response compression for CSRF-bearing responses / avoid compression when attacker-controlled content is reflected in the same response).

Event History

Sep 18, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are not affected?

API-only deployments that never render Mojolicious CSRF tokens in HTML are not affected.

2

What conditions are required for exploitation?

The application must render a reused per-session CSRF token in HTML, enable response compression, and reflect attacker-influenced content in the same response. The attacker must be able to induce many victim requests and observe response sizes; no authentication is required.

3

How can I determine whether an application is exposed?

Check whether it uses Mojolicious versions prior to 9.48 and the csrf_field, csrf_token, or csrf_protect helpers in rendered HTML. Exposure additionally depends on response compression and attacker-controlled reflected content being present in those responses.

4

What is the available fix?

Upgrade Mojolicious to version 9.48, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203