Skip to content
PHP News
Search

Laravel security advisory

Laravel Debug Error Page: Request Parameters Allow Reflected XSS

Published as "Laravel Reflected XSS via Request Parameter in Debug-Mode Error Page"

medium Laravel Laravel framework · Last reviewed
CVE
CVE-2024-13918
GHSA
GHSA-546h-56qp-8jmw
Packagist
PKSA-qzrn-rnz3-85w1
Reported
Dec 13, 2024

Lets an attacker run script in a visitor's browser through a crafted link to a Laravel app running with APP_DEBUG=true.

Affected and fixed versions

In laravel/framework. Find the row for the version you run, and update to the release next to it.

If you run Update to Support
11.9.0 – 11.35.x 11.36.0

Upgrade

Run the line for the branch you are on.

composer require laravel/framework:^11.36.0

Check your app with an agent

Paste this into a coding agent that can read your project, such as Claude Code, Codex or Amp. It checks your composer.lock against the versions above and tells you what to update, without changing anything.

Check whether the PHP project you have access to is affected by this security advisory, and tell me what to update. Do a read-only check: don't edit files, don't run composer update or composer require, and don't try to reproduce the flaw.

Advisory: Laravel Debug Error Page: Request Parameters Allow Reflected XSS (CVE-2024-13918, GHSA-546h-56qp-8jmw)
Details: https://phpnews.net/security/laravel/ghsa-546h-56qp-8jmw

Affected versions, as Composer constraints:
- laravel/framework: >=11.9.0,<11.36.0

Fixed releases:
- 11.9.0 – 11.35.x: update to 11.36.0

1. Find every composer.lock in the project outside vendor/ (a monorepo can have one per app) and read the installed version of each package above. Packages installed as dependencies of other packages count too.
2. Compare each installed version with its constraint: "|" separates alternative ranges, and "," means both bounds apply.
3. For each affected install, read the project's advisory at https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20241209-01_Laravel_Reflected_XSS_via_Request_Parameter_in_Debug-Mode_Error_Page and check whether the project meets the conditions it describes (if that page won't load, use https://github.com/advisories/GHSA-546h-56qp-8jmw). Say which conditions you could check and which you couldn't.
4. Report a table: lock file | package | installed version | affected (yes, no or unknown) | conditions met (yes, no or unknown) | update to | evidence. For each affected package, give the command that would fix it, without running it: composer update <package> --with-dependencies when it is only installed as a dependency of another package, or composer require with the fixed version when composer.json requires it directly. If the installed version is on a branch with no fixed release listed, say it needs a move to a newer branch.

Sources

← All Laravel advisories