Vulnerability 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.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Electric | Sync-Service | >= 1.1.12, < 1.5.0 |
Related Weaknesses (CWE)
References
- https://github.com/electric-sql/electric/pull/4081ExploitIssue Tracking
- https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hjExploitVendor Advisory
- https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hjExploitVendor Advisory
FAQ
What is CVE-2026-40906?
CVE-2026-40906 is a vulnerability with a CVSS score of 9.9 (CRITICAL). 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 ...
How severe is CVE-2026-40906?
CVE-2026-40906 has been rated CRITICAL with a CVSS base score of 9.9/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-40906?
Check the references section above for vendor advisories and patch information. Affected products include: Electric Sync-Service.