Laravel: XSS via unescaped Stringable values in Blade component attribute bag
CVE-2026-142642GHSA-hv67-wfqj-w9xvPublished 2 Dec 2026, 22:49 UTC
Real-world risk
1.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Laravel is a web application framework. Prior to 13.43.0 and 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. This issue is fixed in versions 13.43.0 and 12.73.0.
Am I affected?
What to do
Update to a fixed version: 13.43.0, 12.73.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 24), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.700
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.7 × threat 0.851.785
- Rounded to one decimal between 0.1 and 101.8
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 1.8 (cvss fallback)
Weakness
CWE-83
References
- https://github.com/laravel/framework/security/advisories/GHSA-hv67-wfqj-w9xvvendor-advisory
- https://github.com/laravel/framework/pull/62503misc
- https://github.com/laravel/framework/commit/d214178be8144c729f3318b194d474d0ed042db7misc
- https://github.com/laravel/framework/releases/tag/v12.73.0misc
- https://github.com/laravel/framework/releases/tag/v13.43.0misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-142642
- https://github.com/advisories/GHSA-hv67-wfqj-w9xv
- CVE-2026-142642 on CVE.org