Skip to content
Laskyr

livewire/livewire security advisory

CVE-2026-81887: Livewire DOM-based cross-site scripting during client-side state handling

CVE-2026-81887 is a medium-severity DOM-based XSS vulnerability in the PHP package livewire/livewire (CVSS 5.1), published 31 August 2026. The advisory does not name a fixed version. It can be exploited without an account.

medium 5.1 published 2026-08-31 · updated 2026-09-09

The advisory does not name a fixed version

This DOM-based XSS issue affects livewire/livewire in 2 release lines: >= 3.0.0-beta.1, <= 3.8.2; >= 4.0.0-beta.1, <= 4.3.3. The newest release (4.4.8) is outside the affected range.

Affected versions
>= 3.0.0-beta.1, <= 3.8.2
>= 4.0.0-beta.1, <= 4.3.3
Fixed in
not stated
Newest release
4.4.8
Severity
Medium · CVSS 5.1
Type
DOM-based cross-site scripting (XSS)
CWE-79, CWE-1321
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-04

Is your livewire/livewire version affected?

Run composer show livewire/livewire in your project, then enter the version. We check it against this and every other known livewire/livewire advisory.

Who can exploit CVE-2026-81887

CVSS vector (scored by GitHub): 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

Your app is only exposed if it uses the affected part of livewire/livewire. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

How to fix CVE-2026-81887 in livewire/livewire

  1. Find the installed version: composer show livewire/livewire. If you never required it yourself, composer why livewire/livewire shows which package pulls it in.
  2. Update it: composer update livewire/livewire --with-all-dependencies.
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "livewire/livewire": "^4.4.8" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-81887.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for DOM-based XSS issues while the upgrade waits. None of it replaces the fix.

The CVE-2026-81887 advisory

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.

Description from the CVE record, published by GitHub (the CVE Numbering Authority), via the NVD entry for CVE-2026-81887. Advisory title: “Livewire DOM-based cross-site scripting during client-side state handling”.

References

Other livewire/livewire advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit