Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › PHP

CVE-2026-142638 — laravel framework

Medium · CVSS 4.2EPSS 0.3% First seen December 02, 2026

One of 19 laravel framework vulnerabilities published together by NVD: our article covers all of them.

PHPWebVulnerabilities

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 4.2 CVSS 3.1 base score from the CNA (github.com)

An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Login needed
no
User action needed
yes, someone must click, open or visit something
Scope
stays within the vulnerable component
Impact
low on confidentiality and integrity, none on availability

Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected and fixed versions

ProductAffected versionsFixed in
laravel/framework (Packagist)≥ 13.0.0, < 13.43.013.43.0
< 12.73.012.73.0
laravel framework>= 13.0.0, < 13.43.0, < 12.73.0—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

Affected

  • laravel framework

What to do

  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-142638?

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). Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).

How severe is CVE-2026-142638?

CVE-2026-142638 has a CVSS 3.1 base score of 4.2 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.

Is CVE-2026-142638 being exploited?

Not as far as is known: CVE-2026-142638 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-142638?

laravel/framework (Packagist) ≥ 13.0.0, < 13.43.0 (fixed in 13.43.0); laravel/framework (Packagist) < 12.73.0 (fixed in 12.73.0); laravel framework >= 13.0.0, < 13.43.0, < 12.73.0.

How do I fix CVE-2026-142638?

Update to a fixed release: laravel/framework (Packagist) 13.43.0; laravel/framework (Packagist) 12.73.0.

Timeline & sources

References

Related vulnerabilities & news