CVE-2026-142642

Laravel: XSS via unescaped Stringable values in Blade component attribute bag

Published Dec 2, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Laravel
Laravel framework
Vendors & Products Laravel
Laravel framework
Type Values Removed Values Added
Description 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.
Title Laravel: XSS via unescaped Stringable values in Blade component attribute bag
Weaknesses CWE-83
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-83

    Improper Neutralization of Script in Attributes in a Web Page

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 2, 2026, 10:49 PM
Reserved
Dec 2, 2026, 10:31 PM
Status
Received
Published
Dec 2, 2026, 11:18 PM
Modified
Dec 2, 2026, 11:18 PM