CVE-2026-142638 - Laravel: Unescaped bound attributes on Blade dynamic components that resolve to class-based components
Vulnerability · Reported by NVD · · CWE-79
- Severity
- Medium Risk score 42/100
- CVSS
- 4.2 v3.1 · from NVD
- Exploit chance (EPSS)
- – Not available yet
- Known exploited
- No Not in CISA KEV
Summary
Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, Blade's did not HTML-escape bound attributes (:attr="$value") when the target resolved to a class-based component. If user-controlled data was bound to an attribute that is not a constructor parameter and the component outputs {{ $attributes }}, the value could break out of the HTML attribute and lead to cross-site scripting (XSS). The same component rendered with its normal tag escaped the value correctly. Anonymous component targets were not affected. Existing compiled views retain the vulnerable behavior until they are cleared or recompiled with php artisan view:clear or php artisan view:cache. This issue is fixed in versions 13.43.0 and 12.73.0.
How this vulnerability can be exploited
This is a cross-site scripting (XSS) flaw (CWE-79). An attacker can exploit this vulnerability remotely over the network, without any login, and only if a user is tricked into an action (such as clicking a link or opening a file). Attack complexity is high, meaning specific conditions must exist first.
Is it being exploited?
There is no public evidence of active exploitation yet. Monitor for exploit releases, especially if the product is internet-facing.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Warn users about suspicious links and files that could trigger the flaw. 5) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Tags
CVE-2026-142638
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-142638 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.