{"id":"GHSA-q729-696q-g9pq","revision":"b0c1dfc72861440b8b0121a031eca726","records":[{"revision":"b0c1dfc72861440b8b0121a031eca726","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-q729-696q-g9pq","aliases":["CVE-2026-63760"],"title":"SurrealDB has Denial of Service in JSON parser due to nested objects","description":"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.\n\nThis 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.\n\n### Impact\n\nAn unauthenticated remote attacker can crash a SurrealDB server with a single WebSocket message. No credentials or query execution privileges are required.\n\n### Patches\n\nA patch enforces the configured recursion depth limit in `parse_value` and `parse_json`, bringing them in line with the rest of the parser.\n\n- Versions 3.1.0 and later are not affected by this issue.\n\n### Workarounds\n\nRestrict network access to the WebSocket `/rpc` endpoint to trusted clients.","state":0,"publishedAt":"2026-07-01T20:03:33+00:00","modifiedAt":"2026-09-04T21:10:34.708728+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q729-696q-g9pq","https://nvd.nist.gov/vuln/detail/CVE-2026-63760","https://github.com/surrealdb/surrealdb/commit/1bd9826f477f4089134460dc5574b6f4e6916973","https://github.com/surrealdb/surrealdb","https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-json-parser"],"sourceUrl":"https://github.com/advisories/GHSA-q729-696q-g9pq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-q729-696q-g9pq","identifiers":["GHSA-q729-696q-g9pq","CVE-2026-63760"]},"retained":false,"historicalAffected":[]}],"coverage":[]}