Skip to content

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.

Source: Laravel

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.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)