CVE-2026-40906

published 21 Apr 2026 · updated 11 Nov 2026

Electric: SQL Injection via ORDER BY Parameter in Shape API

10.0CriticalCVSS 10.0EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.5.0.

Electric is a Postgres sync engine. From 1.1.12 to before 1.5.0, the order_by parameter in the ElectricSQL /v1/shape API is vulnerable to error-based SQL injection, allowing any authenticated user to read, write, and destroy the full contents of the underlying PostgreSQL database through crafted ORDER BY expressions. This vulnerability is fixed in 1.5.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
electricsync-service>=1.1.12 <1.5.01.5.0
electric-sql>=1.1.12 <1.5.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40906 severity on Zeptric[![CVE-2026-40906](https://zeptric.io/badge/cve/CVE-2026-40906.svg)](https://zeptric.io/cve/CVE-2026-40906)