CVE-2026-30870
JSON

6.5medium

Some sync filters in PowerSync Service ignored using `config.edition: 3`

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.40% (higher than 25% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q6wc-xx4m-92fj

Description

PowerSync Service is the server-side component of the PowerSync sync engine. In version 1.20.0, when using new sync streams with config.edition: 3, certain subquery filters were ignored when determining which data to sync to users. Depending on the sync stream configuration, this could result in authenticated users syncing data that should have been restricted. Only queries that gate synchronization using subqueries without partitioning the result set are affected. This vulnerability is fixed in 1.20.1.

Affected

Product or packageVersionsReported by
powersync-ja powersync-service< 1.20.1CVE List
@powersync service-core< 1.20.1CVE List
@powersync service-sync-rules< 0.33.0CVE List
@powersync/service-core (npm)from 1.20.0 before 1.20.1GitHub Advisory Database
@powersync/service-sync-rules (npm)from 0.32.0 before 0.33.0GitHub Advisory Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-285

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

PowerSync Service is the server-side component of the PowerSync sync engine. In version 1.20.0, when using new sync streams with config.edition: 3, certain subquery filters were ignored when determining which data to sync to users. Depending on the sync stream configuration, this could result in authenticated users syncing data that should have been restricted. Only queries that gate synchronization using subqueries without partitioning the result set are affected. This vulnerability is fixed in 1.20.1.

GitHub Advisory Database
Impact

In version 1.20.0, when using new sync streams with config.edition: 3, certain subquery filters were ignored when determining which data to sync to users.

Depending on the sync stream configuration, this could result in authenticated users syncing data that should have been restricted.

Only queries that gate synchronization using subqueries without partitioning the result set are affected.

Not affected:

  • Sync rules (bucket_definitions)
  • Sync streams using config.edition: 2
  • No data is exposed without authenticating
Patches

The issue is fixed in 1.20.1. Restarting the service with the new version is sufficient - no reprocessing of sync streams is required.

Any data that users erroneously synced will be automatically removed from those devices when they connect again.

We have updated all affected PowerSync Cloud instances to the fixed version, and are reaching out to affected customers.

For self-hosted PowerSync instances, update to the latest version and restart.

Affected queries

Subqueries used only to determine whether or not a table should be synced (without partitioning the data itself) are affected. Examples:

-- Goal: Sync a table only to admin users
-- 1.20.0: all authenticated users would sync this table
SELECT * FROM sensitive_table WHERE auth.user_id() IN (SELECT user_id FROM admins)
SELECT * FROM sensitive_table WHERE 1 IN (SELECT 1 FROM users WHERE id = auth.user_id() AND is_admin = TRUE)

-- Goal: Sync a table only if authorized
-- 1.20.0: all authenticated users would sync this table
SELECT * FROM sensitive_table WHERE 'sensitive_table' IN (SELECT table_name FROM synced_table WHERE "user" = auth.user_id())
SELECT * FROM sensitive_table WHERE 'sensitive_table' IN auth.parameter('allowed_tables')

Queries that partition data (for example SELECT * FROM sensitive_table WHERE owner IN (SELECT id FROM users WHERE is_admin AND id = auth.user_id())) are not affected by this issue.

NVD (es)

PowerSync Service es el componente del lado del servidor del motor de sincronización PowerSync. En la versión 1.20.0, al usar nuevas transmisiones de sincronización con config.edition: 3, ciertos filtros de subconsulta fueron ignorados al determinar qué datos sincronizar con los usuarios. Dependiendo de la configuración de la transmisión de sincronización, esto podría resultar en que usuarios autenticados sincronicen datos que deberían haber sido restringidos. Solo las consultas que controlan la sincronización usando subconsultas sin particionar el conjunto de resultados se ven afectadas. Esta vulnerabilidad está corregida en la 1.20.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-30870 changed 2026-03-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-q6wc-xx4m-92fj changed 2026-03-23CC-BY-4.0
NVDCVE-2026-30870 changed 2026-06-17Public domain