SurrealDB versions before 2.6.1 and before 3.0.0-beta.3 contain a denial of service vulnerability in their embedded JavaScript scripting engine. This vulnerability is triggered when the --allow-scripting option is enabled, which is disabled by default. An attacker able to execute arbitrary queries, including unauthenticated guests if --allow-guests is enabled, can cause the server to crash by exploiting a null pointer dereference in the QuickJS-NG engine. The issue requires manual server restart after the crash. The vulnerability was fixed by updating the rquickjs dependency to version 0.11.0.