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.
Published: 2026-04-21
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Full database compromise via SQL injection
Action: Immediate Patch
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 13 May 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Electric
Electric sync-service
CPEs cpe:2.3:a:electric:sync-service:*:*:*:*:*:*:*:*
Vendors & Products Electric
Electric sync-service

Wed, 22 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 22 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Electric-sql
Electric-sql electric
Vendors & Products Electric-sql
Electric-sql electric
References
Metrics threat_severity

None

threat_severity

Important


Wed, 22 Apr 2026 00:00:00 +0000

Type Values Removed Values Added
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.
Title Electric: SQL Injection via ORDER BY Parameter in Shape API
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Electric Sync-service
Electric-sql Electric
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-22T13:47:15.546Z

Reserved: 2026-04-15T16:37:22.767Z

Link: CVE-2026-40906

cve-icon Vulnrichment

Updated: 2026-04-22T13:47:08.906Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-21T21:16:44.697

Modified: 2026-05-13T15:47:04.403

Link: CVE-2026-40906

cve-icon Redhat

Severity : Important

Publid Date: 2026-04-21T20:05:51Z

Links: CVE-2026-40906 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T11:45:21Z

Weaknesses