power-components/livewire-powergrid is vulnerable to SQL Injection
76
High Risk
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.
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.
power-components/livewire-powergrid is vulnerable to SQL Injection in versions 6.0.0 - 6.10.3.
Upgrade the power-components/livewire-powergrid library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant