#10752·livewire

Uninitialized typed property is read in updateProperty() for nested update paths, turning tampered updates into 500s

Author: oleksandr-roskovynskyiCreated Sep 25, 2026Updated Sep 25, 2026

Livewire version

v4.4.6 (the line is unchanged on 4.x as of 2026-09-25)

Laravel version

v13.26.1

PHP version

8.5.8

Browser and operating system

Not browser-specific (server-side). Observed from scanner probes in production; reproduced with Livewire::test() and with a raw POST to the update endpoint.

Describe the issue you're experiencing

Not a security issue. Nothing is exposed or bypassed; the request fails either way. This is about the failure mode, the same as #10685.

A typed public property that is never assigned dehydrates as null, so it is still uninitialized on the next request. When an incoming update targets a nested path of that property (for example name.first), HandleComponents::updateProperty() reads the property before drilling into the path:

php
$propertyValue = $component->$property;

PHP throws Error: Typed property ...::$name must not be accessed before initialization (src/Mechanisms/HandleComponents/HandleComponents.php:458 on 4.x @ ada5a078). It is not a TypeError, so none of the existing handling catches it, and the request becomes a reportable 500 instead of the quiet 419 Livewire gives other malformed updates. The non-nested case, set('name', []), already goes through setComponentPropertyAwareOfTypes() and ends as a quiet 419.

#10687 fixed the same kind of read in expandConsolidatedFormObjectUpdates() (#10685); the nested branch of updateProperty() still reads the property directly. #[Locked] properties are not affected, because the update hook refuses them before this line.

Code snippets to reproduce the issue

php
use Livewire\Component;
use Livewire\Livewire;

$testable = Livewire::test(new class extends Component {
    public string $name; // declared, never assigned

    public function render(): string
    {
        return '<div></div>';
    }
});

// Snapshot data at this point: {"name": null}

$testable->set('name.first', 'Caleb');

// Actual (debug on):  Error: Typed property ...::$name must not be accessed before initialization
// Actual (debug off): 500, reported

Steps:

  1. Declare a typed public property on a component and do not assign it in mount().
  2. Render the component once (the snapshot carries the property as null).
  3. Send an update for a nested path of that property, e.g. name.first.
  4. Observe the uninitialized-property Error from updateProperty().

Screenshots/screen recordings

No response

How do you expect it to work?

The same as a non-nested malformed update: the value goes through the usual typed-property handling, so it throws a TypeError in debug mode and ends as a quiet 419 outside debug mode. I have a fix with tests ready and will open a PR referencing this issue.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be removed if I haven't met the criteria above.