SurrealDB before v2.6.1 Denial of Service via scripting
surrealdb
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| surrealdb crates.io |
|
|
Original description
SurrealDB before v2.6.1 (and before v3.0.0-beta.3) contains a denial of service vulnerability in its embedded JavaScript scripting engine, which is enabled via the --allow-scripting capability (disabled by default). Any user able to execute arbitrary queries — including unauthenticated guests when --allow-guests is enabled — can use built-in string functions to construct a large string and pass it to the JavaScript runtime for compilation, triggering a null pointer dereference in the underlying QuickJS-NG engine. This causes the server process to terminate immediately without graceful shutdown, requiring a manual restart. The issue was fixed by updating the rquickjs dependency from v0.9.0 to v0.11.0.
From the CVE record · VulnCheck
References
- github.com/surrealdb/surrealdb/security/advisories/GHSA-xx7m-69ff-9crpVendor advisory
- vulncheck.com/advisories/surrealdb-before-denial-of-service-via-scriptingAdvisory
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63762.json
- nvd.nist.gov/vuln/detail/CVE-2026-63762
- github.com/surrealdb/surrealdb/pull/6774
- github.com/surrealdb/surrealdb/pull/6833
- github.com/surrealdb/surrealdb/commit/2b0389b92398d9ecff4632cd51bbf8303832a988
- github.com/surrealdb/surrealdb/commit/bcd2ece9ef0d721215f06a47280698669f332285
- github.com/surrealdb/surrealdb