← CVE Intelligence

CVE-2026-40906

Electric: SQL Injection via ORDER BY Parameter in Shape API PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
electric-sql / electricaffected >= 1.1.12, < 1.5.0

CWE

CWE-89

References

ADP enrichment

CISA-ADP

No English description supplied.

redhat-SADP

A flaw was found in ElectricSQL, a Postgres sync engine. An authenticated user could exploit an error-based SQL injection vulnerability in the `/v1/shape` API's `order_by` parameter. This flaw allows an attacker to read, write, and destroy the full contents of the underlying PostgreSQL database. Such an attack could lead to severe data compromise and potential data loss.