CVE Catalog

CVE-2026-142638

MediumCVSS 4.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.29%

23th percentile - higher than 23% of all known CVEs

Summary

In Laravel before versions 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 XSS.

Risk Assessment

This can enable an attacker to execute malicious script in the user's browser (XSS), and existing compiled views remain vulnerable until cleared.

Recommendation

Upgrade Laravel to version 13.43.0 or 12.73.0 and clear or recompile views with php artisan view:clear or php artisan view:cache.

Other vulnerabilities in Laravel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS