CVE-2026-142638: Laravel: Unescaped bound attributes on Blade dynamic components that resolve to class-based components

Published Dec 2, 2026
·
Updated

Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, Blade's <x-dynamic-component> did not HTML-escape bound attributes (:attr="$value") when the target resolved to a class-based component. If user-controlled data was bound to an attribute that is not a constructor parameter and the component outputs {{ $attributes }}, the value could break out of the HTML attribute and lead to cross-site scripting (XSS). The same component rendered with its normal tag escaped the value correctly. Anonymous component targets were not affected. Existing compiled views retain the vulnerable behavior until they are cleared or recompiled with php artisan view:clear or php artisan view:cache. This issue is fixed in versions 13.43.0 and 12.73.0.

Affected Software

1 affected component
composer/laravel/framework<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
  3. Operational

    Clear or recompile existing compiled views with `php artisan view:clear` or `php artisan view:cache`.

Event History

Dec 2, 2026
CVE Published
via MITRE·10:45 PM
Data Sourced
via MITRE·10:45 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are actually exposed to this issue?

Applications are exposed when they use Blade <x-dynamic-component> to resolve a class-based component, bind user-controlled data to an attribute that is not a constructor parameter, and that component renders {{ $attributes }}. Anonymous component targets are not affected, and rendering the same class-based component through its normal tag escapes the value correctly.

2

What must an attacker be able to do to exploit it?

An attacker must be able to influence a value bound through a dynamic component attribute and cause that value to be rendered by the target class-based component's attribute bag. Exploitation also requires user interaction, consistent with the provided CVSS vector.

3

What should be done after updating Laravel?

Update to Laravel 13.43.0 or 12.73.0, as applicable. Then clear or recompile compiled Blade views with php artisan view:clear or php artisan view:cache, because existing compiled views retain the vulnerable behavior until they are cleared or regenerated.

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