Laravel framework susceptible to reflected cross-site scripting
The advisory, in context
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.
Affected 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.
From 11.9.0 before 11.36.0
Fixed in 11.36.0
45 explicitly affected versions
v11.10.0, v11.11.0, v11.11.1, v11.12.0, v11.13.0, v11.14.0, v11.15.0, v11.16.0, v11.17.0, v11.18.0, v11.18.1, v11.19.0, v11.20.0, v11.21.0, v11.22.0, v11.23.0, v11.23.1, v11.23.2, v11.23.3, v11.23.4, v11.23.5, v11.24.0, v11.24.1, v11.25.0, v11.26.0, v11.27.0, v11.27.1, v11.27.2, v11.28.0, v11.28.1, v11.29.0, v11.30.0, v11.31.0, v11.32.0, v11.33.0, v11.33.1, v11.33.2, v11.34.0, v11.34.1, v11.34.2, v11.35.0, v11.35.1, v11.9.0, v11.9.1, v11.9.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "11.9.0"
},
{
"fixed": "11.36.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v11.10.0",
"v11.11.0",
"v11.11.1",
"v11.12.0",
"v11.13.0",
"v11.14.0",
"v11.15.0",
"v11.16.0",
"v11.17.0",
"v11.18.0",
"v11.18.1",
"v11.19.0",
"v11.20.0",
"v11.21.0",
"v11.22.0",
"v11.23.0",
"v11.23.1",
"v11.23.2",
"v11.23.3",
"v11.23.4",
"v11.23.5",
"v11.24.0",
"v11.24.1",
"v11.25.0",
"v11.26.0",
"v11.27.0",
"v11.27.1",
"v11.27.2",
"v11.28.0",
"v11.28.1",
"v11.29.0",
"v11.30.0",
"v11.31.0",
"v11.32.0",
"v11.33.0",
"v11.33.1",
"v11.33.2",
"v11.34.0",
"v11.34.1",
"v11.34.2",
"v11.35.0",
"v11.35.1",
"v11.9.0",
"v11.9.1",
"v11.9.2"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2024-13918
- https://github.com/laravel/framework/pull/53869
- https://github.com/laravel/framework/commit/45287fb2a91c69bb1c110539b9b7341faf5aee33
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2024-13918.yaml
- https://github.com/laravel/framework
- https://github.com/laravel/framework/releases/tag/v11.36.0
- https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20241209-01_Laravel_Reflected_XSS_via_Request_Parameter_in_Debug-Mode_Error_Page
- http://www.openwall.com/lists/oss-security/2025/03/10/3