← 漏洞与更新

中危漏洞公告PHPLaravel

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

受影响

软件包受影响版本修复版本
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.…

在 GitHub Advisory Database 阅读

2026/12/04 03:52,GitHub Advisory Database 发布了“Laravel: XSS via unescaped Stringable values in Blade component attribute bag”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:PHP、Laravel。CVE:CVE-2026-142642。