Skip to main content

Laravel Framework EUVDEUVD-2026-141970

| CVE-2026-142642 MEDIUM
Improper Neutralization of Script in Attributes in a Web Page (CWE-83)
2026-12-02 GitHub_M GHSA-hv67-wfqj-w9xv
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app rendering user Stringable into Blade attribute
  2. Delivery
    Submit crafted value breaking attribute quoting
  3. Exploit
    Inject event-handler attribute (onmouseover)
  4. Execution
    Victim loads/interacts with page
  5. Impact
    Script executes in application origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Attribute value escaping
Exploitation Conditions

Exploitation requires that the application itself passes a user-controlled, non-Htmlable object value - specifically an Illuminate\Support\Stringable such as the result of request()->string() - into ComponentAttributeBag::merge() or prepends() when rendering a Blade component attribute, on Laravel framework versions prior to 12.73.0 or 13.43.0. It does NOT trigger for plain strings (already escaped), null, booleans, or Htmlable instances, nor against default scaffolding that casts input to strings. Limiting factors: the vulnerable Stringable-in-attribute pattern is an application coding choice, not a framework default (so many Laravel apps are not exposed); successful exploitation needs victim user interaction (UI:R, e.g. hovering/interacting with the injected element); and the documented workaround - casting values to plain strings via ->toString() before merge()/prepends() - fully neutralizes it without upgrading.

Impact

This is a moderate-severity reflected XSS (CVSS 5.4, CWE-83) whose real-world risk is tightly gated by an application-side coding pattern rather than being a blanket flaw in all Laravel deployments. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N) indicates network reach and no attacker authentication, but the UI:R component and the mechanism both require a victim to load an attacker-influenced page, and - critically - the application must itself pass user-controlled non-Htmlable objects (e.g. request()->string(), an Illuminate\Support\Stringable) into ComponentAttributeBag::merge() or prepends(). No EPSS score, KEV status, or SSVC automatable/technical-impact values were supplied in the input, so probabilistic and decision-framework signals cannot be weighed; the only priority signal is the vuln.today 'this_month' label, which is consistent with a conditional medium issue rather than an emergency. A public PoC reference exists in the form of the fix PR and its regression tests (which embed the working payload 'x" onmouseover=alert(1) data-x="'), but there is no indication of in-the-wild exploitation. Net: a genuine but conditional priority - patch on a normal cycle - not a high-CVSS-but-low-risk theoretical issue, yet also not a remotely-exploitable-everywhere crisis, because exploitability depends on whether a given app actually feeds raw Stringable user input into Blade attribute bags.

Exploit ScenarioDerived

An application renders a Blade component and passes a user-controlled Stringable (such as request()->string('title')) into an attribute via {{ $attributes->merge([...]) }} or prepends(). An attacker supplies a value like 'x" onmouseover=alert(1) data-x="' that breaks out of the attribute quoting and injects an event handler; when a victim views the page and interacts with the element, attacker script executes in the application's origin. A public PoC reference exists (the fix PR's regression tests demonstrate the exact break-out payload), but it is not packaged as a standalone working exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Cross-site scripting in Laravel Framework before 12.73.0 and 13.43.0 can execute in the application's origin when an application passes a user-controlled Illuminate\Support\Stringable value into a Blade component attribute through ComponentAttributeBag::merge() or prepends(). Only applications that place such non-Htmlable objects into component attributes are exposed; plain strings, null, booleans and Htmlable values are already handled safely. Unauthenticated remote attackers can inject arbitrary attributes such as event handlers, but the victim must interact with the injected element (UI:R), and no public exploit was identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to Laravel Framework 13.43.0 on the 13.x line or 12.73.0 on the 12.x line. The advisory is https://github.com/laravel/framework/security/advisories/GHSA-hv67-wfqj-w9xv, the fix was merged in https://github.com/laravel/framework/pull/62503 (commit d214178be8144c729f3318b194d474d0ed042db7), and the release tags are https://github.com/laravel/framework/releases/tag/v13.43.0 and https://github.com/laravel/framework/releases/tag/v12.73.0. Before upgrading, the vendor-documented workaround is to cast user-controlled values to plain strings, for example request()->string('title')->toString(), before passing them to merge() or prepends(); this fully neutralizes the issue because plain strings are already escaped. No additional configuration change is required once a fixed release is installed.

Affected VersionsENISA

framework 13.0.0, < 13.43.0
framework < 12.73.0

Affected Packages

composer laravel/framework fix: 12.73.0, 13.43.0
euvd framework fix: 12.73.0, 13.43.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Laravel's Blade templating engine renders component attributes through Illuminate\View\ComponentAttributeBag. In affected versions, the shouldEscapeAttributeValue() predicate treated every object as non-escapable, so a non-Htmlable object such as Illuminate\Support\Stringable was rendered into the attribute without HTML escaping even though its string value was attacker-influenced. This is CWE-83 (Improper Neutralization of Script in Attributes in a Web Page), the attribute-context cross-site scripting class: breaking out of the quoted attribute allows injection of extra attributes, including event handlers that execute in the application's origin. The fix changes the predicate to skip escaping only for null, booleans and Htmlable instances and to escape all other values, and it also resolves AppendableAttributeValue instances so values added by prepends() are escaped. The affected Composer package is covered by CPE cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*; exposure is not a framework default but depends on an application coding pattern that passes user-controlled Stringable objects into component attributes.

Know when Laravel gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Unauthenticated network-reachable reflected XSS (PR:N, AV:N) needing victim interaction (UI:R) and gated by an app coding pattern; limited confidentiality/integrity impact in-origin, no availability or scope change.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Dec 03, 2026 - 20:05 EUVD
CVE Published
Dec 02, 2026 - 22:49 cve.org
MEDIUM 5.4

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
High
Laravel is one of the most widely deployed PHP web frameworks
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
High

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2017-16894 HIGH POC
7.5 Nov 20

In Laravel framework through 5.5.21, remote attackers can obtain sensitive information (such as externally usable passwo

CVE-2025-54068 CRITICAL POC
9.8 Jul 17

Laravel Livewire v3 through v3.6.3 contains a critical remote code execution vulnerability (CVE-2025-54068, CVSS 9.8) th

CVE-2025-53833 CRITICAL POC
10.0 Jul 14

LaRecipe versions prior to 2.8.1 contain a Server-Side Template Injection (SSTI) vulnerability that can lead to Remote C

CVE-2026-28289 CRITICAL POC
10.0 Mar 03

File upload bypass in FreeScout 1.8.206 — patch bypass for CVE-2026-27636. PoC and patch available. CVSS 10.0.

CVE-2026-27636 HIGH POC
8.8 Feb 25

Remote code execution in FreeScout prior to version 1.8.206 allows authenticated users to upload `.htaccess` files that

CVE-2018-15133 HIGH POC
8.1 Aug 09

In Laravel Framework through 5.5.40 and 5.6.x through 5.6.29, remote code execution might occur as a result of an unseri

CVE-2025-70841 CRITICAL POC
10.0 Feb 03

Dokans SaaS e-commerce platform v3.9.2 has a CVSS 10.0 authentication bypass allowing unauthenticated attackers to obtai

CVE-2026-27637 CRITICAL POC
9.8 Feb 25

Predictable password reset tokens in FreeScout help desk before 1.8.206. Weak random number generation allows attackers

CVE-2026-21448 CRITICAL POC
9.8 Jan 02

Bagisto eCommerce platform before 2.3.10 is vulnerable to server-side template injection (SSTI) through customer address

CVE-2026-21446 CRITICAL POC
9.8 Jan 02

Bagisto eCommerce platform (2.3 branch before 2.3.10) leaves installation API routes active after setup, allowing unauth

CVE-2022-2870 CRITICAL POC
9.8 Aug 17

A vulnerability was found in laravel 5.1 and classified as problematic. Rated critical severity (CVSS 9.8), this vulnera

CVE-2026-114509 CRITICAL POC
9.2 Oct 21

Laravel TokenGuard authentication bypass is a genuine high-priority issue, not an inflated CVSS score: unauthenticated a

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy