· via dev.to (home feed)
Laravel fixes unauthenticated DoS bug in 13.38.0 and 12.74.0
Laravel advisory GHSA-8h64-cpq2-9h2g describes an unauthenticated DoS bug that lets small JSON requests exhaust PHP workers; the fix shipped in framework 13.38.0 and 12.74.0.

What happened
Laravel has patched an unauthenticated denial-of-service vulnerability in its framework, with fixes released in 13.38.0 on the 13.x line and 12.74.0 on the 12.x line. According to a write-up on dev.to, the issue is documented in advisory GHSA-8h64-cpq2-9h2g, published by Laravel on 23 November 2026, carrying a CVSS score of 7.5 and no CVE identifier in the sources that article's author could access.
The impact, as described in that coverage: a JSON request of ordinary overall size could make a Laravel application consume far more CPU and memory than expected while processing it. Because no authentication is required, a small number of concurrent requests could exhaust the available PHP workers. Affected releases are all framework versions before 13.38.0 on 13.x and before 12.74.0 on 12.x — which includes anyone pinned to 13.37.x, the release at the centre of a video and several write-ups this week.
The timeline
According to a comment cited by the dev.to article, the bug was reported to Laravel by email on 20 October 2026 and fixed in less than a day. The public advisory only followed on 23 November, more than a month later. The article treats that gap as standard practice for frameworks: ship the patch quietly, let it spread through routine upgrades, then publish details once the fix has circulated. One consequence is that an app upgraded in late October for unrelated reasons may already be protected without anyone on the team realising a security fix came along with it.
What changed in the framework
The dev.to write-up identifies the fix in Laravel's public changelog between 13.37.0 and 13.38.0: a commit dated 20 October 2026, titled 'limit bytes', touching Illuminate\Foundation\Http\Middleware\TransformsRequest — the base class behind the framework's input-cleaning middleware, including TrimStrings, ConvertEmptyStringsToNull, and any custom middleware extending it.
Before the change, this middleware walked every key in the request's input recursively, with no limit on how much key data it would process. That structure matches the advisory's description: a payload that looks ordinary in total size can still describe a large amount of key data once nested arrays and repeated structures are decoded, because a request can be small on the wire yet expand into a very large number of keys.
The fix has the middleware track the cumulative byte length of every key it walks across a request and throw a PostTooLargeException — an HTTP 413 response — once that total passes a limit defaulting to 20 MiB of key bytes per request. Rather than leaning on a general request-size cap, the patch bounds the specific cost the middleware itself incurs. The dev.to author read the commit and its accompanying test in the framework's public GitHub history but did not execute the before-and-after behaviour to measure the real resource cost, and deliberately left out exploit parameters and amplification ratios.
How to check your install
Run php artisan --version, or inspect composer.lock for the laravel/framework entry. Anything below 13.38.0 on 13.x, or below 12.74.0 on 12.x, is an affected release. The suggested upgrade path is composer require laravel/framework:^13.38.0 --update-with-dependencies for 13.x apps, or the equivalent command with ^12.74.0 on 12.x.
One caveat: the new key-byte limit can reject payloads that previously went through — though only ones carrying an unusually large amount of key data — so request validation deserves a test pass after upgrading. No workaround short of upgrading was published for this specific bug.
The write-up also recommends general defences that shrink the blast radius of any similar future flaw: a request body size limit at the web server or reverse proxy (nginx's client_max_body_size, for example), PHP's post_max_size, memory_limit and max_execution_time, a worker-level timeout such as PHP-FPM's request_terminate_timeout so one pathological request cannot pin a worker indefinitely, and rate limiting at the edge, which matters most for unauthenticated vulnerabilities.
A related fix in the same window
Coverage of the same advisory period, cited by dev.to, also mentions a separate moderate-severity validation bug: empty-string array keys could slip past wildcard rules such as items.*, skipping checks including required_if and Rule::forEach(). That issue is fixed in 13.43.0 and 12.73.0 — a reason, the article argues, to move to the current patch release of your major line rather than stopping at the minimum version that closes the DoS.
Why it matters
This is an unauthenticated, high-severity bug that needs only a handful of concurrent requests to take PHP workers out of service, making cheap attacks on any exposed Laravel endpoint that accepts JSON a realistic risk. The mechanism carries a lesson beyond Laravel: middleware that recursively processes request input without bounding how much key data it touches turns a wire-small payload into disproportionate server-side work, and a 20 MiB key budget is a direct answer to that shape of problem. Finally, the month-long gap between the quiet fix and the public advisory is a reminder that security patches for actively maintained frameworks often ship before anyone announces them, so teams should verify exact patch versions rather than assume a recent upgrade included the fix.
- #laravel
- #php
- #security
- #denial-of-service
- #patch-management