CVE-2026-142642

MEDIUMCVSS 5.4/10EPSS 0.30%

Last modified

CVE-2026-142642 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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(). EPSS estimates a 0.30% chance of exploitation in the next 30 days.

Description

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.

Metrics

EPSS Probability
0.30%

24.3th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
laravelframework>= 13.0.0, < 13.43.0; < 12.73.0

References

Timeline

Published
Last Modified
Status
Awaiting Analysis

Frequently Asked Questions

What is CVE-2026-142642?
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.
How severe is CVE-2026-142642?
CVE-2026-142642 has a CVSS score of 5.4/10 (MEDIUM severity). The EPSS model estimates a 0.30% probability of exploitation in the next 30 days.
How do I fix CVE-2026-142642?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-142642?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST