CVE Professor
/
All CVEs
CVE-2026-142642

CVE-2026-142642 — Laravel/framework — CWE-83

MEDIUM CVSS 5.4 ⚡ EPSS 0.3% GitHub

### 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()`.

### 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()`.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality Low C:L
Integrity Low I:L
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.3%
30-day probability
In the 24. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142642
CVSS 5.4/10 · MEDIUM · 02.12.2026
CWE: CWE-83
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: ### 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 a…
Affected: laravel/framework

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · user interaction required (UI:R) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); limited integrity modification (I:L).

🛡️ REMEDIATION
→ Apply vendor security update for laravel/framework.
→ Add CSP headers, HTML-encode all user input.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

header="laravel_session"
CVSS Score
5.4 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-83
Affected Products (1)
laravel/framework
References & Advisories (4)
Related CVEs
5.9
CVE-2026-142650
Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compili
5.3
CVE-2026-142649
## Summary The `in` validation rule (and `Rule::in`, and `not_in` via the same code) compares the scalar inpu
4.9
CVE-2026-142648
Laravel is a web application framework. Prior to 13.26.0 and 12.67.0, A temporary signed read URL for a privat
4.3
CVE-2026-143824
A vulnerability was determined in krayin laravel-crm up to 2.2.8. The affected element is an unknown function
9.2
CVE-2026-126106
An authentication bypass in the native password check (LoginFactory.passwordMatch) in dotCMS versions before 2
6.9
CVE-2026-145181
quinn-udp before 0.5.16 and 0.6.x before 0.6.3 contains an infinite loop vulnerability in the Unix recv_single
8.7
CVE-2026-144474
Knot Resolver 6.0.9 before 6.5.1 contains a loop with unreachable exit condition in validate_keyset() in lib/l