Advisories for Composer/Power-Components/Livewire-Powergrid package

2026

livewire-powergrid: SQL injection via sortDirection in naturalSort queries

[Description] The public Livewire property sortDirection is interpolated verbatim into a raw SQL ORDER BY clause and is not restricted to asc/desc, allowing arbitrary SQL injection through POST /livewire/update. Data flow Source — src/Concerns/Sorting.php: public string $sortDirection; is a Livewire-bound property with no whitelist/validation (it is only assigned and flipped by reverseSort()), so it is fully attacker-controlled via the standard Livewire update endpoint. Taint — src/DataSource/Processors/Database/Pipelines/ColumnRawQueries.php, resolvePlaceholders(): preg_replace_callback('/{(\w+)}/', fn ($m) …