← Vulnerabilities

MediumAdvisoryPHPLaravel

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

Affected

PackageAffected versionsFixed in
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.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.…

Read on GitHub Advisory Database

On 12/04/2026, 03:52 AM, GitHub Advisory Database published "Laravel: XSS via unescaped Stringable values in Blade component attribute bag" (type: Advisory). Severity is "Medium" (medium). Related technologies: PHP, Laravel. CVE: CVE-2026-142642.