CVE-2026-142642
### 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()`.
Properties
- Severity
- medium
- Summary
- Laravel: XSS via unescaped Stringable values in Blade component attribute bag
- Nvd fetched at
- 2026-12-04T15:00:48.841578+00:00
- Epss score
- 0.00299
- Cvss severity
- MEDIUM
- Cvss score
- 5.4
- Retrieved at
- 2026-12-04T15:02:58+00:00
- Ghsa published
- 2026-12-03T18:52:18Z
- Source url
- https://github.com/advisories/GHSA-hv67-wfqj-w9xv
- Ghsa updated
- 2026-12-03T18:52:19Z
- Ghsa id
- GHSA-hv67-wfqj-w9xv
- Last source
- FIRST EPSS
- Score
- 5.4
- Cvss version
- 3.1
- Cve id
- CVE-2026-142642
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- First seen by Signal
- 2026-12-03T02:46:42+00:00
- Name
- CVE-2026-142642
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph