CVE-2026-81887

Livewire DOM-based cross-site scripting during client-side state handling

Published Aug 31, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Livewire is a full-stack framework for Laravel. From 3.0.0-beta.1 until 3.8.3 and 4.3.4, the dot-notated query-string parser in js/plugins/history/index.js, including fromQueryString() and insertDotNotatedValueIntoData(), accepts the __proto__, constructor, and prototype path segments and creates inherited objects. Client-side state handlers then access effects.html, effects.js, effects.xjs, and effects.scripts without Object.prototype.hasOwnProperty.call(), allowing inherited attacker-controlled state to be treated as trusted effects. An unauthenticated attacker can craft a URL that, when opened by a user, executes arbitrary JavaScript in the affected application's origin. Exploitation requires user interaction and does not bypass server-side authorization or grant privileges beyond the affected user. This issue is fixed in versions 3.8.3 and 4.3.4.

Analysis

AI-generated

Technical impact

Livewire’s dot‑notated query‑string parser in js/plugins/history/index.js has a flaw that allows attacker‑controlled path segments such as __proto__, constructor, and prototype to create inherited properties. When client‑side state handlers, which access effect.* properties, read these properties without verifying ownership, the prototype chain can inject malicious JavaScript code. An unauthenticated attacker can craft a URL that, when a user visits it, causes the browser to execute arbitrary JavaScript in the context of the affected application. This attack affects confidentiality, integrity, and availability by allowing the attacker to run scripts that can steal session data or manipulate the page.

Affected Systems

Any Laravel application using the Livewire framework below version 3.8.3 or 4.3.4 is vulnerable. The affected packages include Livewire 3.x from 3.0.0‑beta.1 up to 3.8.2 and Livewire 4.x from 4.0.0 up to 4.3.3. Those editions expose the vulnerable history module; applications that have upgraded to v3.8.3 or v4.3.4 contain the fix.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate risk, and the EPSS score is not available. The vulnerability is not in the KEV catalog. Exploitation requires that the user opens a crafted URL, so it is user‑dependent, but once achieved an attacker gains the same privileges as the user and can execute arbitrary JavaScript within the site’s origin. The best mitigation is to install the patched Livewire release promptly, and, while updating, consider additional defenses such as input sanitization and a strong Content‑Security‑Policy.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Livewire to version 3.8.3 or newer, or to 4.3.4 or newer.
  • Review custom query‑string handling in the application and sanitize or strip unexpected path segments, ensuring that prototype inheritance cannot be abused.
  • Deploy a Content‑Security‑Policy that disallows inline and eval scripts and restricts script sources to trusted origins, to mitigate any remaining XSS vectors.

Generated by OpenCVE AI on August 31, 2026 at 21:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-g3hc-697w-wm82 Livewire DOM-based cross-site scripting during client-side state handling
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Livewire
Livewire livewire
Vendors & Products Livewire
Livewire livewire
Type Values Removed Values Added
Description Livewire is a full-stack framework for Laravel. From 3.0.0-beta.1 until 3.8.3 and 4.3.4, the dot-notated query-string parser in js/plugins/history/index.js, including fromQueryString() and insertDotNotatedValueIntoData(), accepts the __proto__, constructor, and prototype path segments and creates inherited objects. Client-side state handlers then access effects.html, effects.js, effects.xjs, and effects.scripts without Object.prototype.hasOwnProperty.call(), allowing inherited attacker-controlled state to be treated as trusted effects. An unauthenticated attacker can craft a URL that, when opened by a user, executes arbitrary JavaScript in the affected application's origin. Exploitation requires user interaction and does not bypass server-side authorization or grant privileges beyond the affected user. This issue is fixed in versions 3.8.3 and 4.3.4.
Title Livewire DOM-based cross-site scripting during client-side state handling
Weaknesses CWE-1321
CWE-79
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 3, 2026, 6:03 PM
Reserved
Aug 27, 2026, 5:48 PM
Status
Deferred
Published
Aug 31, 2026, 9:17 PM
Modified
Sep 9, 2026, 9:09 PM