CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-Q6WC-XX4M-92FJ

GHSA-q6wc-xx4m-92fj: Improper Authorization in PowerSync Service Sync Streams

Alon Barad
Alon Barad
Software Engineer

Mar 7, 2026·5 min read·35 visits

Executive Summary (TL;DR)

PowerSync Service 1.20.0 ignores certain `WHERE` clause filters in sync streams when using `config.edition: 3`. Authenticated users can unintentionally sync restricted data if access is controlled via non-partitioning subqueries. Patched in version 1.20.1.

A critical logic error in PowerSync Service version 1.20.0 causes the synchronization engine to ignore specific subquery filters when using the `config.edition: 3` architecture. This flaw results in an authorization bypass where authenticated users may receive data intended solely for privileged accounts, such as administrators.

Vulnerability Overview

PowerSync is a framework designed to synchronize data between a central PostgreSQL database and local SQLite databases on client devices. The service relies on defined 'sync rules' to determine which rows in the central database should be replicated to a specific authenticated user. These rules typically take the form of SQL queries with WHERE clauses that filter data based on the user's identity.

In version 1.20.0, PowerSync introduced a new sync stream architecture, enabled via config.edition: 3. This update contained a logic flaw in the query parser responsible for applying security filters. Specifically, the engine failed to apply 'gating' filters—conditions that determine whether a user should access a table at all—when those filters relied on subqueries. While direct row-level partitioning (e.g., user_id = auth.user_id()) functioned correctly, broad access controls were silently dropped from the execution plan.

This vulnerability manifests as an Information Disclosure (Improper Authorization). An authenticated user connecting to the service effectively receives a full table dump for affected queries, bypassing the intended access control logic defined by the developer.

Root Cause Analysis

The root cause lies in the differentiation between partitioning filters and gating filters within the config.edition: 3 execution engine. Partitioning filters are used to slice data (e.g., returning only rows owned by the user), whereas gating filters often act as boolean switches (e.g., allowing access to a table only if the user belongs to a specific group).

The vulnerability specifically affects non-partitioning subqueries. When the query planner encountered a WHERE clause containing a subquery that did not directly correlate a row column to the user ID but instead checked a global condition, the filter was omitted. The engine erroneously treated these complex predicates as non-binding or resolved them to TRUE for all users.

For example, a rule intended to restrict a table to administrators often uses a subquery to check the user's role. Because this subquery does not partition the data by row ID but rather gates the entire dataset, the flawed logic in 1.20.0 discarded the check. Consequently, the query executed without the restriction, synchronizing the entire dataset to any user with a valid session.

Technical Analysis of Affected Queries

The following SQL patterns demonstrate the specific failure modes observed in version 1.20.0. The core issue is the semantic handling of subqueries in the WHERE clause.

1. Admin Gating (Vulnerable)

In this scenario, the developer intends to sync the sensitive_table only if the requesting user is present in the admins table. The vulnerability causes the WHERE clause to be ignored, resulting in a SELECT * FROM sensitive_table for all users.

-- Vulnerable Query Pattern
SELECT * 
FROM sensitive_table 
WHERE auth.user_id() IN (
    SELECT user_id 
    FROM admins
);

2. Table-List Gating (Vulnerable)

A common pattern involves checking a permissions table to see if a specific resource is allowed. This logic also fails because it relies on a subquery that does not partition the target table directly.

-- Vulnerable Query Pattern
SELECT * 
FROM sensitive_table 
WHERE 'sensitive_table' IN (
    SELECT table_name 
    FROM synced_table_permissions 
    WHERE "user" = auth.user_id()
);

3. Partitioning (Not Affected)

Standard row-level security patterns that directly compare columns remain effective. The engine correctly processes these because they are identified as partitioning keys.

-- Secure Query Pattern (Unaffected)
SELECT * 
FROM sensitive_table 
WHERE owner_id = auth.user_id();

> [!NOTE] > The vulnerability is specific to config.edition: 3. Configurations using the older config.edition: 2 or standard bucket definitions are not impacted.

Exploitation Scenarios

Exploitation of this vulnerability requires no specialized tools or complex attack chains. It is an architectural failure that occurs automatically during the normal synchronization process.

Prerequisites

  1. Authentication: The attacker must possess a valid, authenticated user session for the PowerSync Service.
  2. Configuration: The target service must be running version 1.20.0 with config.edition: 3 enabled.
  3. Vulnerable Rules: The application must define sync rules using subqueries for access control (gating) rather than row-level partitioning.

Attack Path

  1. An attacker authenticates to the application as a standard, low-privilege user.
  2. The client application (PowerSync SDK) initiates a sync connection to the backend service.
  3. The backend evaluates the sync rules. Due to the vulnerability, the WHERE clause restricting access to sensitive tables (e.g., admin_audit_logs) is ignored.
  4. The service streams the complete contents of the restricted table to the attacker's local SQLite database.
  5. The attacker inspects their local database to access unauthorized information.

Impact Assessment

The primary impact is Confidentiality Loss. The severity depends on the nature of the data protected by the affected sync rules. In many applications, these 'gating' queries are used for high-privileged data, such as:

  • Administrative Logs: Visibility into system actions and user behaviors.
  • Configuration Secrets: System-wide settings intended only for admin viewing.
  • Tenant Data: In multi-tenant systems where subqueries determine tenant isolation (though direct partitioning is more common here), cross-tenant leakage could occur.

CVSS v3.1 Analysis:

  • Vector: AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (Score: 6.5)
  • Attack Vector (Network): Exploitable remotely.
  • Privileges Required (Low): Any authenticated user can trigger the leak.
  • Confidentiality (High): Total disclosure of the affected table's data.
  • Integrity/Availability (None): The vulnerability does not allow modification of data or denial of service.

Official Patches

PowerSyncOfficial Security Advisory

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected Systems

PowerSync Service (Self-Hosted)PowerSync Service Core (npm)

Affected Versions Detail

Product
Affected Versions
Fixed Version
@powersync/service-core
PowerSync
= 1.20.01.20.1
@powersync/service-sync-rules
PowerSync
<= 0.32.00.33.0
AttributeDetail
CWE IDCWE-285
Attack VectorNetwork
CVSS Score6.5 (Medium)
ImpactHigh Confidentiality Loss
Component@powersync/service-core
Exploit StatusNo Active Exploitation Known

MITRE ATT&CK Mapping

T1565Data Manipulation
Impact
T1213Data from Information Repositories
Collection
CWE-285
Improper Authorization

Improper Authorization

Vulnerability Timeline

Vulnerability Disclosed
2026-03-07
Patch Released (v1.20.1)
2026-03-07
Cloud Instances Updated
2026-03-07

References & Sources

  • [1]GitHub Advisory: GHSA-q6wc-xx4m-92fj
  • [2]OSV Record

More Reports

•about 5 hours ago•CVE-2026-58197
8.8

CVE-2026-58197: Host Escape and Lateral Movement via Insecure Container Network Defaults in ToolHive

A high-severity access control vulnerability in ToolHive CLI before v0.30.1 and ToolHive Studio before v0.38.0 allows local containerized MCP servers to bypass network isolation. This enables malicious workloads to establish TCP/IP connections to administrative and control plane endpoints exposed on the host loopback interface.

Amit Schendel
Amit Schendel
4 views•8 min read
•about 6 hours ago•CVE-2026-63405
5.9

CVE-2026-63405: Insufficient Verification of Data Authenticity in AnyCable Pusher REST API

AnyCable is a real-time communication server. Prior to version 1.6.15, its Pusher-compatible REST API suffered from an authentication bypass vulnerability because it failed to verify that the request body matched the signature-validated body_md5 parameter. This allows attackers to perform replay attacks with modified body contents.

Amit Schendel
Amit Schendel
6 views•5 min read
•about 7 hours ago•CVE-2026-64847
6.8

CVE-2026-64847: Indefinite Denial of Service via Undrained Stderr in AnyIO Process Pool Workers

A denial-of-service vulnerability exists in AnyIO prior to version 4.14.2. Standard error streams of process-pool workers are connected to an operating system pipe that is never drained by the parent process. This allows a worker to fill the pipe buffer and deadlock indefinitely.

Amit Schendel
Amit Schendel
5 views•6 min read
•about 8 hours ago•CVE-2026-63349
7.0

CVE-2026-63349: Privilege Dropping Bypass and Denial of Service in AnyIO Subprocess Module

CVE-2026-63349 is a critical privilege-dropping bypass vulnerability in the AnyIO asynchronous framework (versions 4.14.0 and 4.14.1) on POSIX platforms. Due to a variable assignment typo, supplementary groups specified by the developer are not correctly propagated to the execution backend, resulting in subprocesses retaining the parent process's elevated supplementary group permissions.

Alon Barad
Alon Barad
9 views•5 min read
•about 9 hours ago•CVE-2026-63406
5.9

CVE-2026-63406: Information Disclosure via Insecure Telemetry and Hardcoded Credentials in AnyCable-Go

CVE-2026-63406 is an information disclosure vulnerability in AnyCable-go prior to version 1.6.15. The built-in telemetry client is enabled by default with a hardcoded public authentication token ('secret'). This client digests highly sensitive configuration parameters and command-line arguments, including JWT secrets and RPC secrets, into a stable SHA-256 fingerprint. This fingerprint is sent over public networks, exposing those administrative secrets to offline dictionary and brute-force attacks if intercepted.

Alon Barad
Alon Barad
6 views•5 min read
•about 10 hours ago•CVE-2026-84992
6.1

CVE-2026-84992: Cross-Site Scripting (XSS) via Fenced Code Block Parsing in md-editor-v3

CVE-2026-84992 is a Cross-Site Scripting (XSS) vulnerability affecting md-editor-v3 before version 6.5.4. It occurs because the fenced-code block language parser directly interpolates unescaped language metadata into unquoted HTML attributes inside the custom rendering callback. This bypasses the built-in XSSPlugin which runs during the parsing phase, before rendering.

Amit Schendel
Amit Schendel
8 views•6 min read