Skip to main content
VulnerabilityPublished

CVE-2026-142642: Laravel · XSS via unescaped Stringable values in Blade component attribute bag

Affects laravel/frameworkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-142642· Medium 5.4

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

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Packagistlaravel/frameworkAffected
  • >=13.0.0 <13.43.0
Fixed in
  • 13.43.0
Packagistlaravel/frameworkAffected
  • <12.73.0
Fixed in
  • 12.73.0

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

Community reviews

Loading reviews…