Intel

AIKIDO-2026-888106

power-components/livewire-powergrid is vulnerable to SQL Injection

SQL InjectionCVE-2026-65971 Published 4 days ago

76

High Risk

This Affects:

PHPpower-components/livewire-powergrid
6.0.0 - 6.10.3
Fixed in 6.10.4
Are you affected? Scan for Free

TL;DR

The public Livewire sortDirection property is interpolated verbatim into a raw ORDER BY clause built for the naturalSort feature and is not restricted to asc or desc. Setting sortField to an empty string skips the sorting pipeline that normally validates the direction, so the raw-query pipeline still applies the tainted value through orderByRaw. This lets externally supplied input inject arbitrary SQL into the order clause, enabling blind boolean and time-based extraction of database contents. The fix sanitizes the sort direction against an allowlist before it reaches the query.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use a PowerGrid table column configured with naturalSort.

Background info

power-components/livewire-powergrid is vulnerable to SQL Injection in versions 6.0.0 - 6.10.3.

How to fix this

Upgrade the power-components/livewire-powergrid library to the patch version.