VDB
KO
HIGH 7.5

GHSA-6qh5-m6g3-xhq6

Parse Server LiveQuery subscription query depth bypass

Details

### Impact

Parse Server's LiveQuery component does not enforce the `requestComplexity.queryDepth` configuration setting when processing WebSocket subscription requests. An attacker can send a subscription with deeply nested logical operators, causing excessive recursion and CPU consumption that degrades or disrupts service availability.

Deployments are affected when the LiveQuery WebSocket endpoint is reachable by untrusted clients.

### Patches

The fix adds query condition depth validation to the LiveQuery subscription handler, enforcing the same `requestComplexity.queryDepth` limit that already protects REST API queries.

### Workarounds

There is no known workaround other than upgrading.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / parse-server
Introduced in: 9.0.0 Fixed in: 9.6.0-alpha.45
Fix npm install parse-server@9.6.0-alpha.45
npm / parse-server
Introduced in: 0 Fixed in: 8.6.56
Fix npm install parse-server@8.6.56

References