Your $guarded list says is_admin can’t be mass assigned. On Laravel 13.42, a request that sent is-admin instead walked right past it. Laravel 13.43 closes that hole and a handful of XSS and validation bypasses, and adds JsonSchema::rules(), #[RetryFor], releaseUsingBackoff() and RawTemplate. Reverb 1.14 ships the same day with new limits you should know before you deploy.
TL;DR
- 13.43.0 and 12.73.0 were released on November 17, 2026 (15:00 and 14:56 UTC). Both carry the same security fixes. Run
composer update laravel/frameworktoday. - Security: a guarded attribute with a mutator could be mass assigned through a different spelling (
is-admin),Stringablevalues in component attributes weren’t escaped, an empty text field could hide an uploaded file from validation, and the debug page could run script from the URL. All fixed. - New:
JsonSchema::rules()turns the schema you give an AI or MCP tool into Laravel validation rules.#[RetryFor(hours: 1)]replacesretryUntil(), andreleaseUsingBackoff()reuses your job’s backoff. - Reverb 1.14: at most 1,000 channels per connection, channel names up to 164 characters, and old configs now only accept whispers from channel members.
What’s new at a glance#
| Change | PR | What it replaces |
|---|---|---|
| Mass-assignment guard checks normalised names (security) | #62499 | is-admin filling a guarded is_admin |
Stringable attribute values escaped (security) | #62503 | Raw " breaking out of an HTML attribute |
| File wins over an empty input of the same name (security) | #62521 | An unvalidated upload behind avatar= |
| Debug page “copy URL” JSON-encoded (security) | #62418 | A URL that ran script on the error page |
| Dynamic component, slot and attribute names validated | #62453 | Runtime templates built from any string |
$ref chains capped at 64 levels | #62498 | Unbounded schema resolution (DoS) |
JsonSchema::rules() | #62355, #62496 | The same constraints written twice |
#[RetryFor] queue attribute | #62434 | A retryUntil() method |
releaseUsingBackoff() | #62435 | $this->release($this->backoff()[...]) |
RawTemplate for inline components | #62419 | Returning a Blade string from render() |
DB::withoutAffectingStickiness() | #62465 | Saving and restoring sticky state by hand |
Str::of()->isBlank() / isNotBlank() | #62415 | blank(str(...)->stripTags()) |
Security fixes: upgrade now#
Most of the security work landed on both branches, so the advice is the same everywhere: 13.x apps go to 13.43.0, 12.x apps go to 12.73.0. Here is what each fix closes and how to tell if you were exposed.
Mass assignment through a different spelling#
Eloquent resolves setIsAdminAttribute() (and Attribute mutators) with Str::studly(), so is_admin, is-admin and IsAdmin all hit the same mutator. The $guarded check compared names literally. A request with is-admin was “not guarded”, found the mutator, and set is_admin.
Laravel 13.42, then Laravel 13.43:
class Member extends Model
{
protected $guarded = ['is_admin'];
public function setIsAdminAttribute($value): void
{
$this->attributes['is_admin'] = (bool) $value;
}
}
// POST /members { "name": "Eve", "is-admin": true }
Member::create($request->all());
// is_admin === true 😬class Member extends Model
{
protected $guarded = ['is_admin'];
public function setIsAdminAttribute($value): void
{
$this->attributes['is_admin'] = (bool) $value;
}
}
// POST /members { "name": "Eve", "is-admin": true }
Member::create($request->all());
// is_admin === false, name === 'Eve'You were exposed if a model uses $guarded (not $fillable), the guarded column has a set mutator or an Attribute with set:, and you pass raw input such as $request->all() to create(), fill() or update(). Passing $request->validated() was already safe, because only keys you listed get through.
XSS in component attributes and the debug page#
Two escaping gaps in Blade:
- Component attributes (#62503):
$attributes->merge()escaped strings but skipped every object, includingStringable. Astr($request->title)passed as an attribute could close the quote and addonmouseover=.... Now onlyHtmlablevalues (likeHtmlString) skip escaping, andprepends()values are escaped too. - Debug page (#62418): the “copy request URL” button put the raw URL inside a JavaScript string. A crafted link to a page that throws could run script on the error page. It only matters with
APP_DEBUG=true, which should never be the case in production, but staging servers often have it on.
use Illuminate\Support\Stringable;
use Illuminate\View\ComponentAttributeBag;
$bag = (new ComponentAttributeBag)->merge(['title' => new Stringable('x" onmouseover=alert(1) data-x="')]);
(string) $bag;
// 13.42: title="x" onmouseover=alert(1) data-x=""
// 13.43: title="x" onmouseover=alert(1) data-x=""File validation bypass with an empty field#
$request->all() merged files into input, but input always won. Send a multipart request with avatar= (empty) and an avatar file, and the validator saw an empty string. nullable|image passed, then $request->file('avatar') handed you the file nobody checked.
$file = UploadedFile::fake()->create('shell.php', 1, 'application/x-php');
$request = Request::create('/', 'POST', ['avatar' => ''], [], ['avatar' => $file]);
Validator::make($request->all(), ['avatar' => ['nullable', 'image']])->fails();
// 13.42: false (validated an empty string)
// 13.43: true (the file wins over the blank field and fails "image")A normal Inertia useForm() upload never sends both, so your users won’t notice. The fix matters against crafted requests, especially if you store $request->file() somewhere public.
Hardening in the same release#
- Dynamic components (#62453, #62455):
<x-dynamic-component>builds a Blade template at runtime. Component, slot and attribute names with characters outside the tag syntax (quotes, braces,<?) now throwInvalidArgumentExceptioninstead of being pasted into that template. Bound attributes are sanitised like on a normal component tag. - JSON Schema
$refdepth (#62498):JsonSchema::fromArray()stops at 64 nested$refhops. Relevant if you deserialise schemas you didn’t write. not_regex(#62427): whenpreg_match()errors (for example invalid UTF-8 with theuflag),not_regexused to pass. It now fails, likeregexalready did.decimalrule (#62420): possessive quantifiers stop slow backtracking on long digit strings.- Fluent
exists/uniquewhere()(#62425):->where('status', 'NULL')used to runwhereNull()and'!abc'meant “not abc”. Values are now compared literally. - Presence verifier (#62447): JSON integers and booleans are compared as strings. On MySQL,
exists:invites,codewith7no longer matches the row007, andfalseno longer matchesalpha. - TrustProxies on Forge and Vapor (#62484): the automatic “trust all proxies” for
*.on-forge.comand*.on-vapor.comhosts now also requires the platform’s own server variable, so a spoofedHostheader isn’t enough. - Broadcasting stub (#62500): see the upgrade notes. If your users have UUID or ULID keys, this one needs a manual edit.
JsonSchema::rules(): one schema, real validation#
The AI SDK and Laravel MCP describe tool input with Illuminate\JsonSchema. Until now you wrote those constraints twice: once as a schema for the model and once as validation rules, and the two copies drifted. JsonSchema::rules() derives the rules from the schema.
Laravel 13.42, then Laravel 13.43:
public function rules(): array
{
// Copied by hand from the tool's schema...
return [
'name' => ['required', 'string', 'max:50'],
'age' => ['sometimes', 'integer', 'min:18'],
'role' => ['required', 'string', Rule::in(['admin', 'user'])],
'tags' => ['sometimes', 'list', 'max:3'],
'tags.*' => ['string'],
];
}use App\Ai\Schemas\MemberSchema;
use Illuminate\JsonSchema\JsonSchema;
public function rules(): array
{
return JsonSchema::rules(MemberSchema::make());
}namespace App\Ai\Schemas;
use Illuminate\JsonSchema\JsonSchema;
use Illuminate\JsonSchema\Types\ObjectType;
class MemberSchema
{
public static function make(): ObjectType
{
return JsonSchema::object(fn ($s) => [
'name' => $s->string()->max(50)->required(),
'age' => $s->integer()->min(18),
'role' => $s->string()->enum(['admin', 'user'])->required(),
'tags' => $s->array()->items($s->string())->max(3),
]);
}
}In our lab the schema above produced required|string|max:50 for name and sometimes plus integer|min:18 for age, with dot keys like tags.* for nested items. It also takes a raw array, such as an MCP tool’s inputSchema:
JsonSchema::rules([
'type' => 'object',
'properties' => ['email' => ['type' => 'string', 'format' => 'email']],
'required' => ['email'],
]);
// ['email' => ['required', 'string', 'email']]exclusiveMinimum and exclusiveMaximum map to gt: and lt:, pattern to regex with the u flag, and format covers email, uri/url, uuid, date and date-time. Other formats add no rule.
Gotcha: These are Laravel rules, not a JSON Schema validator
Laravel’s usual coercion applies, so the string "19" passes integer (we checked). If a tool must reject strings where the schema says integer, add 'integer:strict' (or Rule::numeric(strict: true)) yourself; in our lab integer:strict rejected "19" and accepted 19. Nested required keys are enforced by the parent’s required_array_keys, so an absent parent object still passes.
On the Vue side nothing changes: the 422 errors land in form.errors like any FormRequest.
<script setup lang="ts">
import { useForm } from '@inertiajs/vue3'
import { store } from '@/routes/members'
const form = useForm({ name: '', age: null as number | null, role: 'user', tags: [] as string[] })
</script>
<template>
<form @submit.prevent="form.submit(store())">
<input v-model="form.name" />
<p v-if="form.errors.name">{{ form.errors.name }}</p>
<button :disabled="form.processing">Save</button>
</form>
</template>#[RetryFor] instead of retryUntil()#
#[Tries], #[Backoff] and #[Timeout] were already attributes. The retry window still needed a method, because it’s relative to when the job is queued. Now it’s an attribute too.
Laravel 13.42, then Laravel 13.43:
class ImportProducts implements ShouldQueue
{
use Queueable;
public function retryUntil(): DateTime
{
return now()->plus(hours: 1, minutes: 30);
}
}use Illuminate\Queue\Attributes\Backoff;
use Illuminate\Queue\Attributes\RetryFor;
#[Backoff(60, 300, 600)]
#[RetryFor(hours: 1, minutes: 30)]
class ImportProducts implements ShouldQueue
{
use Queueable;
}The first argument is seconds; minutes and hours are named. In our lab the queued payload’s retryUntil was exactly 90 minutes after dispatch. It works on jobs, queued mailables, notifications and listeners, and a retryUntil() method or property still wins if both exist.
releaseUsingBackoff() for polling jobs#
Backoff only kicked in when a job threw. A job that releases itself (“payment still pending, check again later”) had to index into its own backoff array, and crashed once attempts outran the list.
Laravel 13.42, then Laravel 13.43:
public function handle(): void
{
if ($this->payment->isPending()) {
$this->release($this->backoff()[$this->attempts() - 1]); // undefined index on attempt 4
}
}
public function backoff(): array
{
return [10, 30, 60];
}public function handle(): void
{
if ($this->payment->isPending()) {
$this->releaseUsingBackoff();
}
}
public function backoff(): array
{
return [10, 30, 60];
}On the database queue our job was released after 10, 30, 60 and 60 seconds over four attempts, with no exception events. With no backoff defined it releases immediately, because the worker’s --backoff option isn’t visible inside the job.
RawTemplate: inline components that admit they’re Blade#
When render() returns a string that isn’t a view name, Blade compiles it. So this innocent-looking component executes whatever the user typed as their name:
public function render(): string
{
return '<span>'.$this->user->name.'</span>'; // name "{{ 6 * 7 }}" renders "42"
}We confirmed that on 13.43: it still renders 42. 13.43 doesn’t change that behaviour yet; it adds RawTemplate so intent is explicit, and the PR author plans to make plain strings resolve only to view names in Laravel 14.
use Illuminate\View\Component;
use Illuminate\View\RawTemplate;
class Alert extends Component
{
public function __construct(public string $type = 'info') {}
public function render(): RawTemplate
{
return new RawTemplate(<<<'blade'
<div {{ $attributes->class(['alert', "alert-{$type}"]) }}>{{ $slot }}</div>
blade);
}
}Data goes in through properties and {{ }}, never into the template string. Our lab rendered <x-alert type="success"> with a slot of {{ 6 * 7 }} as literal text. The constructor is typed literal-string, so PHPStan and Psalm flag concatenated input.
Smaller additions you’ll use#
Stop one write from pinning a job to the primary. With sticky read/write connections, any write sends every later read to the write PDO. Wrap bookkeeping writes:
DB::withoutAffectingStickiness(fn () => $this->report->update(['started_at' => now()]));
$this->report->run(); // reads still go to the replicaA write that happened before the call keeps the connection sticky. Our lab checked both cases with hasModifiedRecords().
isBlank() in a string chain. str($bio)->stripTags()->isBlank() is true for <p> </p>, and str('0')->isBlank() is false, same as blank().
Also in 13.43: Predis retries idempotent commands (now including DEL) after a dropped connection, like PhpRedis already did (#62406, #62502). Tagged cache reads on Redis are pipelined (#62451). autocomplete() prompts get a fallback, so they work on Windows and in $this->artisan() tests (#62522). db:wipe on PostgreSQL skips extension-owned tables (#62460), queue:work reports jobs you fail manually with $this->fail() as failed (#62377), and withCasts() on a relation now applies to create() (#62517).
Reverb 1.14: limits and a new default#
Reverb 1.14.0 (November 17, 15:19 UTC) is a hardening release. Three changes reach your app:
| Change | PR | What you’ll see |
|---|---|---|
| Max channels per connection, default 1,000 | #423 | pusher:subscription_error with type LimitReached |
| Channel names capped at 164 characters | #423 | pusher:subscription_error with type InvalidChannelName |
accept_client_events_from defaults to members | #424 | Whispers from non-members get error 4009 |
| Rejected connections are closed | #419 | Over-limit or bad-origin sockets drop after the error |
| Connection registry | #422 | Ping, prune and shutdown see connections with no channels |
The connection stays open on a subscription error, and Echo routes it to that channel’s .error() callback. Raise the limit per app with REVERB_APP_MAX_CHANNELS_PER_CONNECTION (or max_channels_per_connection in config/reverb.php). Configs published without the key use 1,000, which we confirmed: with a limit of 2, the third subscribe got LimitReached, and a 165-character name got InvalidChannelName.
Heads up: Whispers can stop working on old configs
If your config/reverb.php was published before Reverb 1.8 it has no accept_client_events_from key, and until now that meant all. From 1.14 it means members: a client must be subscribed to the channel to whisper on it. Echo only whispers on channels it joined, so most apps are fine. If you relied on the old behaviour, add 'accept_client_events_from' => env('REVERB_APP_ACCEPT_CLIENT_EVENTS_FROM', 'all') to each app.
A typing indicator from Vue keeps working, because useEcho subscribes before it whispers:
import { useEcho } from '@laravel/echo-vue'
export function useTyping(roomId: number) {
const { channel } = useEcho(`rooms.${roomId}`)
return () => channel().whisper('typing', { at: Date.now() })
}Reverb 1.14 also requires Laravel 12 or 13: Laravel 10 and 11 stay on 1.13. Restart reverb:start after composer update laravel/reverb.
Upgrade notes#
composer update laravel/frameworkputs you on 13.43.0. On 12.x you get 12.73.0 with the security fixes (includingJsonSchema::rules(), backported in #62501).#[RetryFor],releaseUsingBackoff(),RawTemplate,withoutAffectingStickiness()andisBlank()are 13.x only.- Horizon below 5.47.0 now conflicts (#62449). If Composer refuses the update, run
composer update laravel/framework laravel/horizon. - UUID/ULID users and private channels: the
install:broadcastingstub compared(int) $user->id === (int) $id. With UUIDs,(int) '1a2b...'and(int) '1f9e...'are both1, so different users could pass. The stub now compares strings, but your publishedroutes/channels.phpis not updated for you. Fix it by hand:
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
- return (int) $user->id === (int) $id;
+ return (string) $user->id === (string) $id;
});- Dynamic components now throw on names with characters the tag syntax rejects. Check anything that feeds user input into
<x-dynamic-component :component="...">; you should be mapping to an allow-list anyway. Rule::exists()/unique()with->where('col', 'NULL')now matches the stringNULL. Use->whereNull('col')if that’s what you meant.exists/uniquewith JSON numbers on MySQL compare as strings now, so7stops matching007.- The
emailrule now rejects addresses longer than 254 characters on 13.x too (#62347, merged up from 12.x).
Check your models for the guarded-mutator pattern
use App\Models\User;
it('does not mass assign guarded mutators through aliases', function () {
$user = (new User)->fill(['name' => 'Eve', 'is-admin' => true, 'IsAdmin' => true]);
expect($user->is_admin ?? false)->toBeFalse();
});Swap in your own model and guarded column. On 13.42 this fails whenever the column has a set mutator; on 13.43 it passes.
Also out this week#
Laravel AI SDK 1.4.1 (November 17) is a patch with a few real additions: Gemini Decisions API support, Anthropic web search results as citations, a clearer error on 401s, and a pile of streaming and tool fixes. We’ll cover it in Monday’s roundup.
Recap#
- Upgrade to 13.43.0 (or 12.73.0) now: mass assignment via alias spellings,
Stringableattribute XSS, the empty-field file bypass and the debug-page XSS are fixed. - Fix
routes/channels.phpby hand if your user IDs are UUIDs or ULIDs. JsonSchema::rules()lets one schema drive both your AI/MCP tool and your validation.#[RetryFor],releaseUsingBackoff()andRawTemplateremove boilerplate and one footgun.- Reverb 1.14 caps channels per connection at 1,000 and makes old configs whisper to members only.
FAQ#
Is Laravel 13.43 a security release?
Yes. It is a normal minor with features, but it carries several security fixes (mass assignment, XSS, file validation). 12.73.0 ships the same fixes for Laravel 12. Update this week.
Was my app exposed to the mass-assignment bypass?
Only if a model uses $guarded, the guarded column has a set mutator or Attribute setter, and you pass raw input like $request->all() to fill(), create() or update(). $fillable models and $request->validated() were safe.
Does JsonSchema::rules() validate strictly like a JSON Schema validator?
No. It returns normal Laravel rules, so the string "19" passes an integer field. Add strict rules yourself where types must be exact.
Will Reverb 1.14 break my whispers?
Only if your config/reverb.php predates Reverb 1.8 and you relied on clients whispering to channels they had not joined. Set accept_client_events_from to all to keep the old behaviour.
Do I need to change inline components to RawTemplate now?
Not yet: strings still work in 13.43. Switch when you touch them, and never build the template from user input. The PR author plans to propose that Laravel 14 stops compiling plain strings.
Next steps#
- Laravel 13.41: a signed URL fix, $request->uuid() and MigrationFailed
- Laravel Reverb and Vue: broadcast an event and listen with Echo
- Build an MCP server in Laravel for your Vue app
- Form requests with Inertia and Vue
Sources#
- laravel/framework v13.43.0 release and v12.73.0 release
- Security PRs: #62499, #62503, #62521, #62418, #62453, #62455, #62498, #62427, #62420, #62425, #62447, #62484, #62500
- Feature PRs: #62355, #62496, #62434, #62435, #62419, #62465, #62415, #62449
- Docs: Deriving rules from JSON schemas, Inline component views, Queues, Strings: isBlank
- laravel/reverb v1.14.0 release and UPGRADE.md
- laravel/ai v1.4.1 release



