Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M
CVE-2026-40906Electric: SQL Injection via ORDER BY Parameter in Shape API
Critical 10.0
In plain English
A critical-severity SQL injection in electric from electric-sql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities).
Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)0.5%top 59.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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 products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| electric-sql | electric | >= 1.1.12, < 1.5.0 |
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj x_refsource_CONFIRM
- https://github.com/electric-sql/electric/pull/4081 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-40906 vdb-entry, x_refsource_REDHAT
- RHBZ#2460291 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json x_sadp-csaf-vex