CVE-2026-142642: Laravel · XSS via unescaped Stringable values in Blade component attribute bag
Affects laravel/frameworkSource GCVE Database
Not known to be exploited · CVSS 5.4 Medium : upgrade to 13.43.0 when convenient.
Data as of 3 Dec 2026, 19:16 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.4 |
|---|
- Patch
- Available – fixed in 13.43.0, 12.73.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade laravel/framework to 13.43.0; laravel/framework to 12.73.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistlaravel/framework | Affected
| Fixed in
|
| Packagistlaravel/framework | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### 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()`.
References
- github.com/laravel/framework/security/advisories/GHSA-hv67-wfqj-w9xv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-142642 (opens in a new tab)
- github.com/laravel/framework/pull/62503 (opens in a new tab)
- github.com/laravel/framework/commit/d214178be8144c729f3318b194d474d0ed042db7 (opens in a new tab)
- github.com/laravel/framework (opens in a new tab)
- github.com/laravel/framework/releases/tag/v12.73.0 (opens in a new tab)
- github.com/laravel/framework/releases/tag/v13.43.0 (opens in a new tab)