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.
Severity (CVSS)
| Base score | 6 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-476 — NULL Pointer Dereference
Affected products
| Vendor | Product | Versions |
|---|---|---|
| surrealdb | surrealdb | 0 to <2.6.1; 2.6.1 |
| surrealdb | surrealdb | 0 to <3.0.0-beta.3; 3.0.0-beta.3 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-xx7m-69ff-9crp (vendor-advisory)
- https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-scripting (third-party-advisory)
Generated from the official CVE List on 21 Jul 2026 07:01 UTC.