# CVE-2026-40906

> Vulnerability · severity: **CRITICAL** (CVSS 9.9).

## 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.

## Key facts

- **CVE ID:** CVE-2026-40906
- **Published:** 2026-04-21
- **CVSS severity:** CRITICAL
- **CVSS base score:** 9.9
- **CWE codes:** CWE-89

## Affected products

- `electric:sync-service`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40906

## Citation

> AI Analytics. CVE-2026-40906. Retrieved 2026-07-02 from https://api.ai-analytics.org/cve/CVE-2026-40906. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*