Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.
Resumen
CVE-2026-65971: vulnerabilidad de severidad alta (CVSS 7.6) en power-components/livewire-powergrid.
Qué ocurre
Descripción original de la fuente (en inglés): ## [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()`: ```php preg_replace_callback('/\{(\w+)\}/', fn ($m) => data_get($this->component, $m[1], ''), $sql); ``` substitutes `{sortDirection}` with the raw property value. - **Sink** — `src/DataSource/Support/Sql.php::getSortSqlByDriver()` builds the `naturalSort` expression, e.g. `"... {sortDirection}"` / `"CAST(...) {sortDirection}"`, which is passed to `orderByRaw()`. The tainted direction lands directly in the SQL string. **Why the framework mitigation does not apply (the bypass)** Normally the `Sorting` pipeline calls `orderBy(resolveSortField($sortField), $sortDirection)`, and Laravel validates the direction (`Order direction must be "asc" or "desc".`). Setting **`sortField=""`** makes the `Sorting` pipeline skip (`filled('')` is false), so the validating `orderBy` never runs — but the `ColumnRawQueries` pipeline still applies the `naturalSort` `orderByRaw` unconditionally with the attacker-controlled `{sortDirection}`. The result is arbitrary SQL in the `ORDER BY`, bypassing Laravel's direction validation entirely. ## [Proof of Concept] Lab: Laravel 11.53 + Livewire 3…
Por qué importa
Severidad alta, CVSS 7.6.
Productos y versiones afectados
power-components/livewire-powergrid >= 6.0.0, < 6.10.4 (corregido en 6.10.4)
| Producto | Versiones | Corregido en |
|---|---|---|
| power-components/livewire-powergrid | >= 6.0.0, < 6.10.4 | 6.10.4 |
Acción recomendada por la fuente
Actualizar a una versión corregida: 6.10.4.
Corregido en: 6.10.4
Fuentes y referencias
- https://github.com/advisories/GHSA-7fgc-3h6c-698r — GHSA
- https://github.com/Power-Components/livewire-powergrid/security/advisories/GHSA-7fgc-3h6c-698r — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-65971 — GHSA
- https://github.com/Power-Components/livewire-powergrid/commit/13d047bf1637e82926e6914aa3ca0f29a4c9704a — GHSA
- https://github.com/Power-Components/livewire-powergrid/releases/tag/v6.10.4 — GHSA
- https://github.com/Power-Components/livewire-powergrid — OSV
Debilidades (CWE): CWE-89
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.