CVE Catalog

CVE-2026-142642

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.30%

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

Summary

In Laravel before versions 13.43.0 and 12.73.0, Blade component attribute bags did not HTML-escape non-Htmlable object values (such as Stringable) passed to ComponentAttributeBag::merge() or prepends(). If an application places user-controlled Stringable values into component attributes, an attacker can break out of the attribute and inject arbitrary attributes, such as event handlers.

Risk Assessment

This results in cross-site scripting (XSS) running in the application's origin, enabling session theft or actions on behalf of the user.

Recommendation

Upgrade Laravel to version 13.43.0 or 12.73.0 and avoid passing unescaped Stringable values into component attributes.

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 component attribute bags did not HTML-escape non-Htmlable object values, such as Illuminate\Support\Stringable, passed to ComponentAttributeBag::merge() or prepends(). Applications that place user-controlled Stringable values (for example, the result of request()->string()) into component attributes could allow an attacker to break out of the attribute and inject arbitrary attributes, such as event handlers. This results in cross-site scripting that runs in the origin of the application. This issue is fixed in versions 13.43.0 and 12.73.0.

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