Thanks from the Electric side to the Casco team for the responsible disclosure, comprehensive repro and great communication through the process.
This was a critical one to identify and patch: https://github.com/electric-sql/electric/security/advisories...
Just to repeat for visibility, if you're self-hosting the Electric sync service, upgrade to version >= 1.5.0 immediately.