Intel

AIKIDO-2026-954364

electric is vulnerable to Authentication Bypass

Authentication BypassGHSA-m4f6-p2j8-rq76 Published Yesterday

86

High Risk

This Affects:

ELIXIRelectric
1.0.0 - 1.7.11
Fixed in 1.7.12
Are you affected? Scan for Free

TL;DR

Electric's sync service authenticates requests to the /v1/shape API by comparing the raw request path against the exact string /v1/shape, but the router also accepts normalized variants such as /v1/shape/, /v1//shape, and percent-encoded forms like /v1/%73hape. Requests using those alternate paths reach the shape endpoint without the configured API secret being validated, letting unauthenticated callers read shape data and issue GET, POST, HEAD, and DELETE operations. Within the limits of the replication configuration and database privileges, such requests can also add tables to publications or change REPLICA IDENTITY settings. The fix authenticates against the normalized conn.private[:plug_route] set during route matching so every path variant is checked.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your deployment configures an API secret to protect the shape API.

Background info

electric is vulnerable to Authentication Bypass in versions 1.0.0 - 1.7.11.

How to fix this

Upgrade the electric library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform