{"id":"CVE-2026-30870","aliases":["CVE-2026-30870","GHSA-q6wc-xx4m-92fj"],"related":[],"kind":"vulnerability","state":"published","title":"Some sync filters in PowerSync Service ignored using `config.edition: 3`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn 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.\n\nDepending on the sync stream configuration, this could result in authenticated users syncing data that should have been restricted.\n\nOnly queries that gate synchronization using subqueries without partitioning the result set are affected.\n\nNot affected:\n * Sync rules (bucket_definitions)\n * Sync streams using `config.edition: 2`\n * No data is exposed without authenticating\n\n### Patches\n\nThe issue is **fixed in 1.20.1**. Restarting the service with the new version is sufficient - no reprocessing of sync streams is required.\n\nAny data that users erroneously synced will be automatically removed from those devices when they connect again.\n\nWe have updated all affected PowerSync Cloud instances to the fixed version, and are reaching out to affected customers.\n\nFor self-hosted PowerSync instances, update to the latest version and restart.\n\n### Affected queries\n\nSubqueries used only to determine whether or not a table should be synced (without partitioning the data itself) are affected. Examples:\n\n```sql\n-- Goal: Sync a table only to admin users\n-- 1.20.0: all authenticated users would sync this table\nSELECT * FROM sensitive_table WHERE auth.user_id() IN (SELECT user_id FROM admins)\nSELECT * FROM sensitive_table WHERE 1 IN (SELECT 1 FROM users WHERE id = auth.user_id() AND is_admin = TRUE)\n\n-- Goal: Sync a table only if authorized\n-- 1.20.0: all authenticated users would sync this table\nSELECT * FROM sensitive_table WHERE 'sensitive_table' IN (SELECT table_name FROM synced_table WHERE \"user\" = auth.user_id())\nSELECT * FROM sensitive_table WHERE 'sensitive_table' IN auth.parameter('allowed_tables')\n```\n\nQueries 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-07T02:23:24.000Z","modified":"2026-06-17T10:33:03.807Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":"< 1.20.1","status":"affected"}],"vendor":"powersync-ja","product":"powersync-service","source":"cvelist"},{"ranges":[{"version":"< 1.20.1","status":"affected"}],"vendor":"@powersync","product":"service-core","source":"cvelist"},{"ranges":[{"version":"< 0.33.0","status":"affected"}],"vendor":"@powersync","product":"service-sync-rules","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.20.0","status":"affected","fixed":"1.20.1"}],"ecosystem":"npm","package":"@powersync/service-core","purl":"pkg:npm/%40powersync/service-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.32.0","status":"affected","fixed":"0.33.0"}],"ecosystem":"npm","package":"@powersync/service-sync-rules","purl":"pkg:npm/%40powersync/service-sync-rules","source":"ghsa"}],"references":[{"url":"https://github.com/powersync-ja/powersync-service/security/advisories/GHSA-q6wc-xx4m-92fj","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30870","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/powersync-ja/powersync-service","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-10T14:14:10.547Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30870","url":"https://www.cve.org/CVERecord?id=CVE-2026-30870","licence":"CVE Terms of Use","modified":"2026-03-10T14:14:17.271Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q6wc-xx4m-92fj","url":"https://github.com/advisories/GHSA-q6wc-xx4m-92fj","licence":"CC-BY-4.0","modified":"2026-03-23T17:46:21.630Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30870","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30870","licence":"Public domain","modified":"2026-06-17T10:33:03.807Z"}],"updatedAt":"2026-11-25T22:59:15.563Z","epss":{"score":0.00395,"percentile":0.2535,"date":"2026-11-30T12:00:22.000Z"}}