If you ran a dependency check on a Laravel app on Friday, the output probably made you sit up. Between Thursday and Friday, the GitHub Advisory Database published 22 security advisories for laravel/framework, each with its own CVE, two of them rated high. The reassuring part is in the fine print: the Laravel security update that fixes all of them has been out since November 24, as versions 13.44.1 and 12.74.0. Teams that keep up with weekly releases are already covered. Anyone who hasn’t touched composer.lock since the summer is sitting on several open security issues, some of which take nothing more than a single form field to exploit. We reproduced three of them against real framework versions.
Laravel security update: which version you actually need
The reports came in over several weeks and were patched one by one, but the Laravel team disclosed them in a single batch. That’s why the advisories list different minimum versions for their patches. The in rule bug was fixed back in 13.26.0 in August, most of the validation bugs in 13.43.0 on November 17, and the high-severity exponent issue only in 13.44.1 and 12.74.0. In practice, only the highest number matters: 13.44.1 on the 13.x branch and 12.74.0 on 12.x. The current releases, 13.45.0 and 12.75.0 from December 1, include every fix as well.
Laravel 11 doesn’t appear as a patched version in any of the 22 advisories, and that’s deliberate. According to the support table in the Laravel docs, security fixes for version 11 ended on March 12, 2026, while Laravel 12 gets security updates until February 24, 2027. If you’re still on 11, you need a major upgrade, because no patches are coming. When we covered the TokenGuard vulnerability rated CVSS 9.2 in October, 11.x still got a fix.
Composer can tell you whether a project is affected. composer audit checks every installed package against the advisory database. On a fresh install of Laravel 13.42.0, released November 10, it reported 14 advisories for the framework: one high, twelve medium, one low. After upgrading to 13.44.1, it came back clean.
composer audit
composer update laravel/framework -W
composer show laravel/framework | grep versions
php artisan view:clear
People tend to skip that last line. Two of the advisories cover XSS in Blade components, and for one of them the advisory notes that already compiled views keep the old, unsafe behavior until they’re rebuilt. Run php artisan view:clear or view:cache on every server that handles traffic, not just on your laptop.
Test 1: the in rule accepts values that aren’t on the list
For all three tests we installed the framework at several versions with Composer and called the validator directly, without a web server. That keeps the setup small and isolates the rule itself. The oldest bug sits in in and Rule::in. The rule compared input using in_array() without strict mode, and PHP 8 compares numeric strings as numbers. An allowlist like in:0,1, typical for feature flags, stops being an allowlist (GHSA-h2hg-mfj4-rg7q).
<?php
require $argv[1].'/vendor/autoload.php';
use Illuminate\Translation\{ArrayLoader, Translator};
use Illuminate\Validation\Factory;
$v = new Factory(new Translator(new ArrayLoader, 'en'));
echo "Laravel ", Illuminate\Foundation\Application::VERSION, "\n";
foreach (['1', ' 1', '01', '+1', '1e0', "1\n"] as $flag) {
$val = $v->make(['beta' => $flag], ['beta' => 'required|in:0,1']);
printf(" %-8s %s\n", json_encode($flag), $val->passes() ? 'accepted, validated() = '.json_encode($val->validated()['beta']) : 'rejected');
}
Laravel 13.25.0
"1" accepted, validated() = "1"
" 1" accepted, validated() = " 1"
"01" accepted, validated() = "01"
"+1" accepted, validated() = "+1"
"1e0" accepted, validated() = "1e0"
"1\n" accepted, validated() = "1\n"
Laravel 13.44.1
"1" accepted, validated() = "1"
" 1" rejected
"01" rejected
"+1" rejected
"1e0" rejected
"1\n" rejected
On 13.25.0, all five tampered values get through, and validated() hands back the raw bytes, leading space and trailing newline included. That becomes a problem when later code compares with ===, or writes the value unchecked into logs, a cache key or a shell command. A value the validator supposedly limited to 0 or 1 then reaches code that never expected anything else. From 13.26.0 on, only the exact "1" passes.
Test 2: Rule::exists() with a project scope accepts other projects’ records
For multi-tenant apps, GHSA-ch34-gjmh-c4hp is the more interesting one. Plenty of teams use Rule::exists() with a where() clause to check that a submitted ID belongs to the current project. Internally, Laravel serialized that condition into the old string rule format and parsed it back. Values such as NULL, NOT_NULL or anything starting with an exclamation mark were read as operators instead of literals. We reproduced it on SQLite, so this isn’t tied to a particular database driver.
<?php
require $argv[1].'/vendor/autoload.php';
use Illuminate\Database\Capsule\Manager as DB;
use Illuminate\Translation\{ArrayLoader, Translator};
use Illuminate\Validation\{Factory, DatabasePresenceVerifier, Rule};
$db = new DB;
$db->addConnection(['driver' => 'sqlite', 'database' => ':memory:']);
$db->getConnection()->getSchemaBuilder()->create('documents', function ($t) {
$t->id(); $t->unsignedInteger('project_id');
});
$db->getConnection()->table('documents')->insert([
['id' => 1, 'project_id' => 1],
['id' => 2, 'project_id' => 2],
]);
$v = new Factory(new Translator(new ArrayLoader, 'en'));
$v->setPresenceVerifier(new DatabasePresenceVerifier($db->getDatabaseManager()));
echo "Laravel ", Illuminate\Foundation\Application::VERSION, "\n";
// a form from project 2 references document 1 (owned by project 1)
foreach (['2', '!2', 'NOT_NULL'] as $project) {
$rule = Rule::exists('documents', 'id')->where('project_id', $project);
$ok = $v->make(['document_id' => 1], ['document_id' => ['required', $rule]])->passes();
printf(" project_id=%-9s -> %s\n", $project, $ok ? 'accepted' : 'rejected');
}
Laravel 13.42.0
project_id=2 -> rejected
project_id=!2 -> accepted
project_id=NOT_NULL -> accepted
Laravel 13.44.1
project_id=2 -> rejected
project_id=!2 -> rejected
project_id=NOT_NULL -> rejected
With the normal value 2, the rule correctly rejects the document owned by project 1. Send !2 and the condition turns into “project is not 2”, so the foreign document passes. NOT_NULL opens the check to every row. You’re only exposed if an attacker can influence the scope value, say through a hidden form field or a query parameter. If the project ID comes from the session or the authenticated user, nothing happens. If you can’t patch right away, switch to the closure form where(fn ($q) => $q->where('project_id', $id)) and back it up with a policy that checks ownership.
Test 3: a denial-of-service through the decimal rule ties up a worker for ten seconds
The third case is a plain denial-of-service bug. The decimal rule counts decimal places with a regular expression that backtracks quadratically on a long run of digits followed by an exponent (GHSA-h84h-g58v-xg2h). The value passes the earlier is_numeric() check, so the slowdown happens inside the rule. We measured on a test machine with a Xeon CPU, eight vCPUs and the PHP 8.4.28 CLI.
<?php
require $argv[1].'/vendor/autoload.php';
use Illuminate\Translation\{ArrayLoader, Translator};
use Illuminate\Validation\Factory;
$v = new Factory(new Translator(new ArrayLoader, 'en'));
echo "Laravel ", Illuminate\Foundation\Application::VERSION, "\n";
foreach ([25_000, 50_000, 100_000, 200_000] as $n) {
$price = str_repeat('9', $n).'e5'; // passes is_numeric()
$t = microtime(true);
$v->make(['price' => $price], ['price' => 'decimal:0,2'])->passes();
printf(" %7s digits: %6.2f s\n", number_format($n), microtime(true) - $t);
}
Laravel 13.42.0
25,000 digits: 0.16 s
50,000 digits: 0.64 s
100,000 digits: 2.55 s
200,000 digits: 10.21 s
Laravel 13.44.1
25,000 digits: 0.01 s
50,000 digits: 0.00 s
100,000 digits: 0.00 s
200,000 digits: 0.00 s
Twice the length, four times the time: that’s the quadratic pattern the advisory describes. 200,000 digits is roughly 200 KB, well below the usual post_max_size of 8 MB. One such request keeps a PHP-FPM worker busy for ten seconds. With 20 workers, two requests per second are enough to take the app down, and the attacker doesn’t need to log in. In 13.44.1 the quantifiers are possessive and the timings drop to zero. As a stopgap, the advisory recommends putting bail and a length rule in front of decimal, for example bail|max:20|decimal:0,2.
What we couldn’t reproduce
We tried two more issues with the same setup and got nowhere. The exponent bug in multiple_of and in field comparisons with gt or lt (CVE-2026-142610, rated high) stayed quiet for us: values like 1e1000000 were handled in milliseconds. And the __missing__ trick on nested sometimes fields was rejected even on 13.42.0. That doesn’t make the advisories wrong. Both seem to depend on conditions a bare validator without an HTTP request doesn’t recreate, so we’d treat them as seriously as the advisories do.
The other security issues: XSS, IP spoofing, SQL injection
Beyond validation, the remaining CVEs cover most corners of the framework. The vulnerability we’d look at first is IP spoofing through TrustProxies (CVSS 6.5). On apps without configured trusted proxies, an attacker could use request headers, specifically Host, to trigger the Forge or Vapor auto-detection and claim any IP address they liked. Login throttling and IP allowlists stop working at that point. If you run behind your own load balancer, list your trusted proxies explicitly anyway.
There’s also a way around Eloquent’s $guarded protection using an alternate spelling such as is-admin, as long as a set mutator exists for the attribute. A temporary read-only signed URL for private storage could be replayed as a PUT and overwrite the file. The PostgreSQL query grammar had a SQL injection through JSON paths, fixed back in 13.24.0. The second high-severity issue is a denial-of-service through a crafted JSON request body of ordinary size. Two bugs only affect the 12.x branch, including a Sanctum problem where the guard, evaluated inside an eager-loaded relation, could return the user with the lowest ID, which is often the admin.
The two Blade XSS bugs only trigger when user input ends up as a Stringable in $attributes->merge() or gets bound to an <x-dynamic-component> that resolves to a class component. A Content Security Policy without unsafe-inline is a good second layer: an injected onclick handler won’t run even if an escape slips through. If you need inline scripts of your own, allow them with a nonce.
The full list of all 22 entries with their pull requests is in the repository’s security advisories.
How Laravel’s disclosure differs from Django’s security policy
Django makes a useful comparison, since the Python framework shipped security releases for Django 6.1, 6.0 and 5.2 the same week. The Django security policy announces releases about a week ahead on the django-announce mailing list, with the date and severity, and then publishes details and patches for all supported versions on the same day. Anyone running a Django project can schedule the work, and the Django security team even pre-notifies large distributors privately. Laravel does it the other way around: fixes land quietly in the weekly release and the advisories follow days or months later. We reproduced the Django bugs in our piece on the Django security update 6.1.4.
For Laravel teams, that means reacting to advisories always puts you behind. A fixed routine works better: a weekly job that runs composer update on a branch, runs the test suite and reports composer audit results to your monitoring. Then a batch of security updates like this one isn’t weekend work, it’s a line in the logs.
Our take
None of the 22 issues is a disaster on its own, and none is rated critical. The volume still says something. Validation is the first and often the only line of defense in a Laravel app, and it had several holes you can’t see from the outside. If you rely on exists or in to do all the checking, add ownership checks through policies. The same goes for middleware, as the Livewire bypass flaws showed in November.
The next step takes five minutes: run composer audit, move to 13.44.1 or 12.74.0 or later, and recompile your views. If you’re still on Laravel 11, start planning the upgrade now, because it won’t get any more fixes. And if you still update by hand, set up that weekly job while you’re at it.




