Laravel: XSS via unescaped Stringable values in Blade component attribute bag
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| composer:laravel/framework | >= 13.0.0, < 13.43.0 | 13.43.0 |
| composer:laravel/framework | < 12.73.0 | 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.…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/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。