Laravel fixes an IP-spoofing bug in its own hosting defaults
A reverted proxy fix had made every hop in X-Forwarded-For a trusted proxy, letting a client fake its own IP under Laravel Cloud, Forge and Vapor's default wildcard trust setting. 13.45.0 restores the safer behaviour.
Laravel 13.45.0, released on 1 December, reverts a change that had turned trustProxies(at: '*') into a way to spoof your own IP. The earlier fix it undoes had made the wildcard trust 0.0.0.0/0 and ::/0, so every hop listed in the X-Forwarded-For header counted as a trusted proxy. That let the client-supplied, left-most entry in the header become the request’s apparent IP: set the header, claim any address.
The wildcard setting isn’t a fringe config. Laravel’s own hosting platforms, Cloud, Forge and Vapor, use it by default, so the bug reached every app on their standard setup. PR #62702 restores the earlier, narrower behaviour: a wildcard trust now believes only the proxy that actually called your server (REMOTE_ADDR), not whatever a visitor’s header claims.
composer update laravel/framework # pull in 13.45.0
Why it matters: anything gated on $request->ip(), login throttling, rate limits, IP allowlists, was gateable by anyone who could set a header, on every app deployed through Forge, Vapor or Cloud’s defaults. Upgrading matters more than the usual point release.
The caveat: Laravel has not issued this as a numbered CVE or GHSA advisory, it’s documented only as a revert in the ordinary release notes, so there’s no official severity rating attached to it.