Vulnerability GHSA-hv67-wfqj-w9xv

Medium Risk
MEDIUM RISK
CVSS Score: 5.4
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
20 hours ago
December 03, 2026 at 06:52 PM UTC
Laravel: XSS via unescaped Stringable values in Blade component attribute bag
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0

Summary

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

Details

Impact

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.

Patches

The fix escapes all attribute values except null, booleans and Htmlable instances, and also escapes values wrapped with prepends(). It was merged to the 12.x branch in https://github.com/laravel/framework/pull/62503.

Workarounds

Cast user-controlled values to plain strings, for example request()->string('title')->toString(), before passing them to merge() or prepends().

Impacted packages

Timeline

Published
20 hours ago
December 03, 2026 at 06:52 PM UTC
Fixed (12.73.0)
17 days ago
November 17, 2026 at 02:54 PM UTC
Fixed (13.43.0)
17 days ago
November 17, 2026 at 02:58 PM UTC
Last Modified
20 hours ago
December 03, 2026 at 07:00 PM UTC