CVE-2024-13918 Laravel Reflected XSS via Request Parameter in Debug-Mode Error Page
Attackers can execute arbitrary scripts in victim browsers via reflected XSS in Laravel's debug-mode error page, requiring debug mode to be enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-13918?
CVE-2024-13918 is a high-severity cross-site scripting vulnerability in Laravel Framework, published on 10 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The Laravel framework versions between 11.9.0 and 11.35.1 are susceptible to reflected cross-site scripting due to an improper encoding of request parameters in the debug-mode error page.
Weakness: CWE-79
Which versions are affected by CVE-2024-13918?
2 open source packages ship an affected version, including laravel/framework. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
laravel/framework Packagist | From 11.9.0 | 11.36.0 |
laravel/framework Packagist | From 11.9.0 | 11.36.0 |
Products include Laravel Framework.
How do I fix CVE-2024-13918?
Upgrade laravel/framework to 11.36.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-13918 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-13918 exists.
Other vulnerabilities in Laravel Framework
Sources
Also known as GHSA-546h-56qp-8jmw.