CVE-2024-13918
PHP vulnerability analysis and mitigation

Overview

The Laravel framework versions between 11.9.0 and 11.35.1 are affected by a reflected cross-site scripting vulnerability (CVE-2024-13918). The vulnerability was discovered in November 2024 and publicly disclosed on March 10, 2025. The issue stems from improper encoding of request parameters in the debug-mode error page (SBA Research, NVD).

Technical details

The vulnerability occurs when debug mode is active (APP_DEBUG=true) and the web application returns an error (HTTP status 5XX). The error page displays request information without proper encoding, specifically in the template engine where HTML-encoding is deactivated for data passed via {!! !!} tags. The vulnerability has been assigned a CVSS v3.1 base score of 8.0 (High) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N (SBA Research).

Impact

This vulnerability enables attackers to execute arbitrary JavaScript code in a user's browser within the origin of the affected web application. The exploitation requires the user to access an attacker-provided link and the web application must be running in debug mode (Security Online).

Exploitability

The vulnerability can be exploited when a user accesses a specially crafted URL while the application is in debug mode. The attack involves injecting malicious JavaScript code through request parameters, which is then reflected back in the error page without proper encoding. A successful exploit requires user interaction and the target application must have debug mode enabled (SBA Research).

Mitigation and workarounds

The vulnerability has been fixed in Laravel version 11.36.0. Organizations are advised to upgrade to this version or later. If immediate upgrading is not possible, a temporary workaround is to disable debug mode by setting APP_DEBUG=false in the application's configuration (SBA Research).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77143HIGH8.8
  • PHP logoPHP
  • composer://jweiland/pforum
NoYesAug 25, 2026
CVE-2026-77142HIGH8.8
  • PHP logoPHP
  • composer://jweiland/yellowpages2
NoYesAug 25, 2026
CVE-2026-77146HIGH8.3
  • PHP logoPHP
  • composer://in2code/femanager
NoYesAug 25, 2026
CVE-2026-77145HIGH7.1
  • PHP logoPHP
  • composer://jweiland/events2
NoYesAug 25, 2026
CVE-2026-77144HIGH7.1
  • PHP logoPHP
  • composer://jweiland/events2
NoYesAug 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management