Cross-site Scripting in livewire/livewire
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 3.3.5 before 3.4.9Ecosystem versions | 3.4.9 |
Version evidence: OSV · GHSA-389c-cf87-qmwj
View original version evidence (10 explicit versions)
Original source description
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
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-21504
- Patch github.com/livewire/livewire/pull/8117
- Patch github.com/livewire/livewire/commit/c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0
- Source reference github.com/livewire/livewire
- Release notes github.com/livewire/livewire/releases/tag/v3.4.9
- Security advisory security.snyk.io/vuln/SNYK-PHP-LIVEWIRELIVEWIRE-6446222