Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. livewire/livewire
  4. ›
  5. CVE-2024-21504

CVE-2024-21504: Cross-site Scripting in livewire/livewire

March 19, 2024 (updated March 20, 2024)

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

  • github.com/advisories/GHSA-389c-cf87-qmwj
  • github.com/livewire/livewire
  • github.com/livewire/livewire/commit/c65b3f0798ab2c9338213ede3588c3cdf4e6fcc0
  • github.com/livewire/livewire/pull/8117
  • github.com/livewire/livewire/releases/tag/v3.4.9
  • nvd.nist.gov/vuln/detail/CVE-2024-21504
  • security.snyk.io/vuln/SNYK-PHP-LIVEWIRELIVEWIRE-6446222

Code Behaviors & Features

Detect and mitigate CVE-2024-21504 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.3.5 before 3.4.9

Fixed versions

  • 3.4.9

Solution

Upgrade to version 3.4.9 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/livewire/livewire/CVE-2024-21504.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:36 +0000.