SurrealDB has Denial of Service in JSON parser due to nested objects
High7.5CVE-2026-63760 · Published Jul 1, 2026 · updated Sep 4, 2026
The SurrealDB value and JSON parser did not enforce the configured recursion depth limit when parsing nested `{`, `[`, or `(` tokens. The expression parser already enforced the limit for these tokens; the value/JSON parser omitted it. An unauthenticated attacker could send a deeply nested JSON payload to the WebSocket `/rpc` endpoint and exhaust server memory, crashing the process. This is an incomplete fix for [GHSA-6r8p-hpg7-825g](https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6r8p-hpg7-825g), which addressed the same class of bug in the expression parser but did not cover the value/JSON parser code path. ### Impact An unauthenticated remote attacker can crash a SurrealDB server with a single WebSocket message. No credentials or query execution privileges are required. ### Patches A patch enforces the configured recursion depth limit in `parse_value` and `parse_json`, bringing them in line with the rest of the parser. - Versions 3.1.0 and later are not affected by this issue. ### Workarounds Restrict network access to the WebSocket `/rpc` endpoint to trusted clients.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| surrealdb crates.io | < 3.1.0 | 3.1.0 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-674
- Also known as
- CVE-2026-63760
More SurrealDB advisories
All SurrealDB| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jul 1 | SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted | Medium5.4 | 3.1.0 |
| Jul 1 | SurrealDB: ES512 silently downgraded to ES384 due to jsonwebtoken crate limitation | Medium4.3 | 3.1.0 |
| Jul 1 | SurrealDB: Field-level SELECT permissions bypassed via indexed COUNT fast paths | Medium4.3 | 3.1.0 |
| Jul 1 | SurrealDB: USE NS/DB implicit creation bypasses DEFINE authorization | Medium6.5 | 3.1.0 |
| Jul 1 | SurrealDB: Port-specific --deny-net rules silently bypassed on HTTP redirect | Medium6.4 | 3.1.0 |
| Jul 1 | SurrealDB: Authenticated subscribers can read records hidden by SELECT permissions via LIVE subscriptions | Medium4.3 | 3.1.0 |