When debug mode is on, an attacker can make script run in the browser of someone viewing Laravel's error page. The script runs when that person moves the mouse over a tooltip on the page. This is cross-site scripting (XSS): code from an attacker running as if it came from your site.

Who is affected

Apps on laravel/framework before 12.69.0, or 13.x before 13.30.0, with APP_DEBUG=true. The Laravel advisory says input from the attacker reached a tooltip on the debug page that was allowed to render HTML. Apps running with APP_DEBUG=false don't show that page, so they aren't exposed. The person viewing the page also has to hover over the tooltip.

What to do

Update laravel/framework to 13.30.0 if you're on 13.x, or to 12.69.0 if you're on 12.x. Releases older than 12.x are affected and get no fix. The fix stops the tooltip from rendering that input as HTML.

Reported by Rikuxx0.