CVE-2026-142626: Laravel: Markdown secured encoding bypassed when Blade views are cached

Published Dec 2, 2026
·
Updated

Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, Applications that enable Markdown::withSecuredEncoding() to escape user-controlled data in Markdown mail and mail notifications may not get that protection when views have been precompiled with php artisan view:cache or php artisan optimize. The cached view, compiled with the default echo format, is reused when mail views are rendered, so the secured encoder never runs. An attacker who controls data included in an email, such as a user name, could inject Markdown links or remote images into the message, for example for phishing or tracking. This issue is fixed in versions 13.43.0 and 12.73.0.

Affected Software

1 affected component
Laravel Laravel<13.43.0, <12.73.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13.43.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 12.73.0

Event History

Dec 2, 2026
CVE Published
via MITRE·10:32 PM
Data Sourced
via MITRE·10:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are affected by this issue?

Affected applications use Markdown::withSecuredEncoding() for Markdown mail or mail notifications and have precompiled views using php artisan view:cache or php artisan optimize. The issue applies to Laravel versions earlier than 13.43.0 and 12.73.0.

2

What does an attacker need to exploit it?

An attacker needs control over data that the application includes in a Markdown email, such as a user name. They can use that data to inject Markdown links or remote images into the rendered message.

3

Are applications that do not cache Blade views affected?

The described bypass depends on reuse of a cached view compiled with the default echo format. Applications that have not precompiled views with php artisan view:cache or php artisan optimize are not described as affected by this condition.

4

What should be done if an immediate upgrade is not possible?

Avoid precompiling the relevant views with php artisan view:cache or php artisan optimize, and prevent user-controlled values from being included in Markdown mail content until the application can be updated. The fixed versions are Laravel 13.43.0 and 12.73.0.

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