CVE-2026-40906: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in electric-sql electric
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.
AI Analysis
Technical Summary
CVE-2026-40906 is an SQL injection vulnerability (CWE-89) affecting ElectricSQL, a Postgres sync engine. Specifically, the order_by parameter in the /v1/shape API endpoint is improperly neutralized, enabling authenticated users to perform error-based SQL injection attacks. This can lead to full read, write, and deletion capabilities on the underlying PostgreSQL database. The issue affects versions >=1.1.12 and <1.5.0 and is resolved in version 1.5.0.
Potential Impact
An attacker with authentication can exploit this vulnerability to fully compromise the database by reading sensitive data, modifying records, or deleting data. The CVSS v3.1 score is 10.0 (critical), reflecting the high impact on confidentiality, integrity, and availability of the database.
Mitigation Recommendations
A fix is available in ElectricSQL version 1.5.0. Users should upgrade to version 1.5.0 or later to remediate this vulnerability. No vendor advisory indicates alternative mitigations or that no action is required.
CVE-2026-40906: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in electric-sql electric
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 v3.1
Score 10.0critical
Affected software
pkg:github/electric-sql/electricRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40906 is an SQL injection vulnerability (CWE-89) affecting ElectricSQL, a Postgres sync engine. Specifically, the order_by parameter in the /v1/shape API endpoint is improperly neutralized, enabling authenticated users to perform error-based SQL injection attacks. This can lead to full read, write, and deletion capabilities on the underlying PostgreSQL database. The issue affects versions >=1.1.12 and <1.5.0 and is resolved in version 1.5.0.
Potential Impact
An attacker with authentication can exploit this vulnerability to fully compromise the database by reading sensitive data, modifying records, or deleting data. The CVSS v3.1 score is 10.0 (critical), reflecting the high impact on confidentiality, integrity, and availability of the database.
Mitigation Recommendations
A fix is available in ElectricSQL version 1.5.0. Users should upgrade to version 1.5.0 or later to remediate this vulnerability. No vendor advisory indicates alternative mitigations or that no action is required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-15T16:37:22.767Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-40906","vendor":"Red Hat"}]
Threat ID: 69e85dc119fe3cd2cd7080aa
Added to database: 04/22/2026, 05:33:53 UTC
Last enriched: 07/15/2026, 09:12:38 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 299
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.