Laravel got 14 CVEs on December 3 and 4: what changed and why 12.74.0 / 13.44.1 is the target
One high, twelve medium and one low severity issue in laravel/framework, most of them in validation rules, with the workarounds and the gaps in the advisory text. If your app validates request input with Laravel, at lea
One high, twelve medium and one low severity issue in laravel/framework, most of them in validation rules, with the workarounds and the gaps in the advisory text.
If your app validates request input with Laravel, at least one of this week's advisories probably applies to you.
On December 3 and 4, the GitHub Advisory Database published 14 advisories for laravel/framework. Each one has a CVE id. One is rated high, twelve are medium and one is low. Seven of them are in validation rules, and the validator usually runs on every request your app gets.
Below we cover the fix first, then each issue grouped by area, then what to do if you can't deploy today. At the end we list the parts the advisories leave unclear.
The short version
| Branch | Upgrade to |
|---|---|
| Laravel 12 | 12.74.0 |
| Laravel 13 | 13.44.1 |
Those are the highest fixed versions in the batch, so each one covers every advisory with a fix listed for its branch.
composer update laravel/framework -W
composer show laravel/framework \
| grep versions
php artisan view:clear
People often skip the last line. One of the Blade fixes (CVE-2026-142638) only applies after your views are recompiled. Old compiled views keep the old, unescaped behavior. So run php artisan view:clear or php artisan view:cache after the upgrade, on every server that serves traffic, not just on your laptop.
The high-severity one: CVE-2026-142610
This is the only high-rated issue. Here's what triggers it:
multiple_of-
gt,gte,lt,lte, but only when they compare against another numeric field
These rules expand the input with arbitrary-precision arithmetic and don't put any limit on the exponent. If someone sends a value in scientific notation with a huge or tiny exponent, the rule can use enough CPU and memory to hit PHP's memory limit.
You're exposed when the field has no bounding rule (min, max or between) combined with bail before the affected rule. Comparisons against literal numbers are safe. So are min, max, between and size.
The fix reuses the exponent range guard the framework already had and applies it to these rules. Fixed in 12.74.0 and 13.44.1, which is why those are the target versions.
Validation rules that accepted the wrong input
These four are the ones we'd check first. In each case the validator passes input it should have rejected, and your code then trusts that input.
CVE-2026-142649: in / Rule::in (and not_in). The rule compared values with a non-strict in_array(). On PHP 8, numeric strings are compared as numbers, so whitespace-padded, leading-zero, signed and scientific-notation values pass, and so does a value with an embedded newline. in:0,1 is no longer a strict allowlist. Also, validated() returns the raw input, not the matched value from the list, so those bytes go straight into your app. Feature flags, status codes and integer role/tenant/enum IDs are the obvious targets. Fixed in 12.67.0 and 13.26.0.
CVE-2026-142643: exists / unique on MySQL and MariaDB. Integer and boolean values from a JSON body went into the query unchanged. When MySQL compares a string column with an integer, it casts the column to a number. So 0, false or [0] could pass required|exists:invites,code on a non-numeric string column, and that requires no login. PostgreSQL and SQLite are not affected. Form-encoded input is always a string, so it's not affected either. Fixed in 12.73.0 and 13.43.0.
CVE-2026-142637: Rule::exists() / Rule::unique() with fluent where(). The condition is serialized into the string rule format and then parsed again. A scalar value of NULL, NOT_NULL, or anything starting with ! turned into an IS NULL, IS NOT NULL or not-equal predicate instead of a literal comparison. If a user can influence a scope value like a tenant key, and you rely on this rule to check that a record belongs to them, it can accept records from another tenant. For unique, the scope can get wider. Closure-based where() conditions and apps with separate authorization checks are not affected in the same way. Fixed in 12.73.0 and 13.43.0.
CVE-2026-142624: nested sometimes. For a nested or wildcard field validated with sometimes (like profile.age or items.*.quantity), sending the literal string __missing__ made the field look absent. All of its rules were skipped, validation passed, and validated() returned the value anyway. Top-level fields, and nested fields without sometimes, are fine. Fixed in 12.72.0 and 13.43.0.
Validation rules that can tie up your workers
CVE-2026-142644: decimal. The regex that counts decimal places backtracks quadratically. A long run of digits ending in an exponent like e5 passes the is_numeric() check and then forces heavy backtracking. This works with the default configuration. One large request can take several seconds of worker CPU, so even a low request rate can use up your PHP worker pool. The fix makes the regex quantifiers possessive, and validation results don't change. Fixed in 12.73.0 and 13.43.0.
CVE-2026-142625: email. Oversized addresses with crafted non-ASCII domains trigger expensive Unicode normalization during IDN conversion when the intl extension is enabled. The fixed releases reject addresses longer than 254 bytes before the email validator runs. Fixed in 12.72.0 and 13.43.0.
File uploads: CVE-2026-142641
In Laravel 13.x, Request::all() let a text input with the same name as an uploaded file win over the file. An attacker sends the file plus an empty value under the same name, validation sees the empty value, and nullable, image, mimes and max never check the file. If your code then reads the upload with $request->file() or $request->hasFile(), you store a file that skipped type and size validation. This affects optional uploads validated this way, including through FormRequest.
The advisory text only describes 13.x and says it was released in 13.43.0. The metadata also lists 12.73.0 as fixed.
Blade XSS
CVE-2026-142642. ComponentAttributeBag::merge() and prepends() didn't escape objects that aren't Htmlable, such as Illuminate\Support\Stringable. If you pass request()->string('title') into a component attribute, an attacker can break out of the attribute and add an event handler. Now everything is escaped except null, booleans and Htmlable instances.
CVE-2026-142638. <x-dynamic-component> didn't escape bound attributes (:attr="$value") when the target was a class-based component. You're exposed if the bound attribute isn't a constructor parameter and the component outputs {{ $attributes }}. The same component used with its normal tag escaped correctly. Anonymous components were not affected. This is the one that needs view:clear.
Both list 12.73.0 and 13.43.0 as fixed.
Everything else
CVE-2026-142650: SQL injection in the PostgreSQL grammar. Single quotes in JSON path segments weren't escaped when compiling non-raw Query Builder calls. If a user can influence a JSON path, they can break out of the SQL string literal. Fixed in 12.67.0 and 13.24.0.
CVE-2026-142648: storage signed URLs. A temporary signed read URL for a private local-storage file could be replayed as a PUT to the same path, and that overwrites the file. The signature covers the URL and query string, but the read/write mode comes from the request later. Fixed in 12.67.0 and 13.26.0.
CVE-2026-142623: JSON Schema deserializer. Illuminate\JsonSchema\Deserializer followed chained local $ref pointers with no depth limit, through both JsonSchema::fromArray() and Deserializer::deserialize(). A long chain can exhaust memory and kill the worker. It only matters if users can influence the schemas you deserialize. Schemas written by your own developers are safe. The fix throws an InvalidArgumentException past a depth limit. Fixed in 12.73.0 and 13.43.0.
CVE-2026-142622 (low): broadcasting JSONP. With Pusher or Reverb, /broadcasting/auth returned JSONP when a callback parameter was present, and it accepts GET without CSRF protection. A malicious page could load it as a script and read a logged-in user's channel auth token, then subscribe to their private and presence channels. With the default SameSite=Lax cookie, the attacker's page has to be on a subdomain of your site. With SameSite=None, any domain works. JSONP is now off by default and needs the jsonp broadcasting config option to turn it back on. Fixed in 12.53.0.
If you can't deploy today
The advisories suggest two habits: put a bounding rule plus bail before the expensive rules, and declare the type before exists and unique.
$request->validate([
'amount' => [
'bail',
'required',
'numeric',
'between:0,1000000',
'multiple_of:0.01',
],
'code' => [
'required',
'string',
'exists:invites,code',
],
'email' => [
'bail',
'required',
'max:254',
'email',
],
]);
Rule order matters here. bail stops at the first failure, so between or max rejects the bad value before the expensive rule runs. What has to come before the expensive rule is the bounding rule (between or max), used together with bail.
For exists/unique, use string (or integer, if that's what the column holds), or cast the input in prepareForValidation().
For Blade, turn user values into plain strings before merge() or prepends(): request()->string('title')->toString().
For Rule::exists() and Rule::unique(), don't pass user-influenced values to the scalar where() form.
Workarounds have a real weakness: you need them on every affected field, and missing one leaves it open. A search like this one finds many of the candidates, in your code and in your Blade views. It's still a partial search, so treat the results as a starting point, not a complete list:
grep -rnE "multiple_of|decimal|\b(gt|gte|lt|lte|in|not_in):|email|exists:|unique:|sometimes|Rule::(in|exists|unique)|merge\(|prepends\(|x-dynamic-component" \
app/ resources/views/ --include=*.php
Even so, the upgrade is the safer fix. Workarounds are something to use until you can deploy it.
What the advisories don't make clear
-
"Proposed" vs. released. The text of CVE-2026-142637 and CVE-2026-142644 still calls the fix "proposed", and CVE-2026-142638 says it "has not been confirmed as released". The metadata lists fixed versions for all three. Trust
composer show, not the advisory page. - No patches for older majors. Only 12.x and 13.x have fixed versions. If you're on Laravel 11 or older, no patched release is listed.
- New advisories, possibly old fixes. Several fixed versions (12.53.0, 12.67.0, 13.24.0, 13.26.0) are lower than the ones listed for the high-severity fix. The advisories don't give release dates, but our guess is that those code fixes shipped before this week's advisories. If you keep up with minor releases, you may already have them.
- Mismatched branches. CVE-2026-142622 lists only 12.53.0. CVE-2026-142641 describes only 13.x in its text, but its metadata also lists 12.73.0.
Why we're tracking this
We maintain PAM Native, an open-source (Apache-2.0) framework for building native Android and iOS apps in typed PHP 8.5. Its offline-first sync comes with a ready-made Laravel server counterpart, so if you run that server, apply the same laravel/framework upgrade there too.
- Code: github.com/push-in/pam-native
- Docs: push-in.github.io/pam-docs/native/overview/
- Install:
composer require pushinbr/pam-native
If you try it and something doesn't work, please open an issue. If it's useful to you, a star helps other PHP devs find it.
Sources
- https://github.com/advisories/GHSA-c25c-x5r7-2v5m
- https://github.com/advisories/GHSA-ww2c-pqp9-rvrq
- https://github.com/advisories/GHSA-ch34-gjmh-c4hp
- https://github.com/advisories/GHSA-h84h-g58v-xg2h
- https://github.com/advisories/GHSA-h2hg-mfj4-rg7q
- https://github.com/advisories/GHSA-wwq3-m3j5-wv66
- https://github.com/advisories/GHSA-f3ph-5p6j-34xr
- https://github.com/advisories/GHSA-cgwv-q695-mj8g
- https://github.com/advisories/GHSA-hv67-wfqj-w9xv
- https://github.com/advisories/GHSA-hxc4-wvjf-r59p
- https://github.com/advisories/GHSA-9966-43cq-4mpr
- https://github.com/advisories/GHSA-gvpq-g4gw-8p4x
- https://github.com/advisories/GHSA-cvfq-f547-rv2g
- https://github.com/advisories/GHSA-hmj2-jgmw-v4m4
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.