Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 62%

CVE-2026-40906: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in electric-sql electric

0
Critical
VulnerabilityCVE-2026-40906cvecve-2026-40906cwe-89
Published: 04/21/2026 (04/21/2026, 20:05:51 UTC)
Source: CVE Database V5
Vendor/Project: electric-sql
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
electric-sql/electric
pkg:github/electric-sql/electric
Affected versions
<1.5.0 >=1.1.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 09:12:38 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses