Vulnerabilities · 2024 · Laravel
CVE-2024-21504
Laravel Livewire vulnerability
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.
Affected products
Livewire. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Laravel Livewire runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/livewire/livewire/commit/c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0 · Patch
- github.com/livewire/livewire/pull/8117 · Patch
- security.snyk.io/vuln/SNYK-PHP-LIVEWIRELIVEWIRE-6446222 · Exploit
- github.com/livewire/livewire/releases/tag/v3.4.9
- nvd.nist.gov/vuln/detail/CVE-2024-21504
- cve.org/CVERecord?id=CVE-2024-21504
More vulnerabilities in Laravel products
CVE-2025-54068CVE-2025-27515CVE-2024-55661CVE-2024-52301CVE-2024-47823CVE-2024-22859CVE-2024-13919CVE-2024-13918All 25
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.