CVE-2024-21504: Cross-site Scripting in livewire/livewire
Versions of the package livewire/livewire from 3.3.5 and before 3.4.9 are vulnerable to Cross-site Scripting (XSS) when a page uses [Url] for a property. An attacker can inject HTML code in the context of the user's browser session by crafting a malicious link and convincing the user to click on it.
Published Mar 19, 2024 · Updated Mar 20, 2024
Affected packages
livewire/livewire
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.3.5, < 3.4.9
- Fixed in
- 3.4.9
- Check
composer show livewire/livewire
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package livewire/livewire from 3.3.5 and before 3.4.9 are vulnerable to Cross-site Scripting (XSS) when a page uses [Url] for a property. An attacker can inject HTML code in the context of the user's browser session by crafting a malicious link and convincing the user to click on it.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21504
- https://github.com/livewire/livewire/pull/8117
- https://github.com/livewire/livewire/commit/c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0
- https://github.com/livewire/livewire/releases/tag/v3.4.9
- https://security.snyk.io/vuln/SNYK-PHP-LIVEWIRELIVEWIRE-6446222
- https://github.com/advisories/GHSA-389c-cf87-qmwj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesGHSA-mhf7-xp6r-6qrc
Livewire: Authorization bypass in #[Authorize] via reordered parameter keys and #[Json] execution order
medium6.5Oct 23, 2026CVE-2026-81887
Livewire DOM-based cross-site scripting during client-side state handling
medium5.1Sep 2, 2026CVE-2025-54068
Livewire is vulnerable to remote command execution during component property update hydration
critical9.8ExploitedJul 17, 2025CVE-2024-47823
Livewire Remote Code Execution on File Uploads
high7.5Oct 8, 2024GHSA-qwvp-268g-jjm8
Data Leakage Vulnerability in livewire/livewire
mediumMay 15, 2024
