CVE-2025-14894: Livewire Updated Files Missing Validation

Livewire component's updatedFiles() hook persists uploaded files via Spatie MediaLibrary's addMedia(...)->toMediaCollection(...) without invoking $this->validate(...). The public $files property bound by the WithFileUploads trait is therefore accepted with no file/mimes/mimetypes/size constraints, allowing an attacker to upload a malicious file (e.g., shell.

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2025-14894-livewire-updated-files-missing-validation --engine opengrep

Description

Livewire component's updatedFiles() hook persists uploaded files via Spatie MediaLibrary's addMedia(...)->toMediaCollection(...) without invoking $this->validate(...). The public $files property bound by the WithFileUploads trait is therefore accepted with no file/mimes/mimetypes/size constraints, allowing an attacker to upload a malicious file (e.g., shell.