Reflected Cross-Site Scripting Vulnerability in Laravel Framework

6.1MEDIUM

CVE-2024-13918

Key Information:

Vendor

Laravel Holdings Inc.

Status
Laravel Framework
CVE ID
CVE ID:
CVE-2024-13918
Vendor
CVE Published:
10 March 2025

Timeline

Trending 9 days after it was published

  • πŸ“ˆ

    Vulnerability started trending

  • πŸ“°

    First article discovered by CybersecurityNews

  • Vulnerability published

  • Vulnerability Reserved

Badges

πŸ“ˆ TrendedπŸ“ˆ Score: 1,460πŸ“° News Worthy

How risky is it?

  • Partly: Works over the network, but a user must act
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Laravel Framework. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (6.1).

What is CVE-2024-13918?

CVE-2024-13918 is a reflected cross-site scripting vulnerability in the Laravel Framework, specifically affecting versions 11.9.0 to 11.35.1. The flaw arises from improper encoding of request parameters displayed on the debug-mode error page when the application is set to APP_DEBUG=true. An attacker can exploit this by crafting a malicious URL that includes JavaScript payloads in the query parameters, which, when accessed, can execute arbitrary JavaScript code in the user's browser.

The vulnerability is rooted in the use of unescaped output directives in Laravel's Blade template engine, which bypasses standard XSS protections. The issue was identified in the error-handling system when an HTTP 500 error occurs, allowing attackers to inject and execute scripts.

Potential Impact of CVE-2024-13918

  1. Session Theft: Attackers can steal session cookies and authentication tokens through JavaScript execution, compromising user accounts.

  2. Phishing Redirects: Malicious scripts can redirect users to phishing sites, increasing the risk of credential theft.

Affected Version(s)

Laravel Framework 11.9.0 <= 11.35.1

News Articles

favicon imageSeclists.org

oss-sec: [SBA-ADV-20241209-01] CVE-2024-13918: Laravel 11.9.0-11.35.1 Reflected XSS via Request Parameter in Debug-Mode Error Page

oss-sec mailing list archives [SBA-ADV-20241209-01] CVE-2024-13918: Laravel 11.9.0-11.35.1 Reflected XSS via Request Parameter in Debug-Mode Error Page From: SBA Research Security Advisory &lt;advisory ()...

favicon imageCybersecurityNews

Laravel Framework Vulnerability Let Attackers Execute Malicious Java Script

A critical security vulnerability (CVE-2024-13918) in the Laravel framework allows attackers to execute arbitrary JavaScript code on websites running affected versions of the popular PHP framework.Β 

References

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Credit

Fabian Funder (SBA Research)
Philipp Adelsberger (SBA Research)
Jeremy Angele
.