In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade surrealdb to version 3.1.5 or higher.
Affected versions of this package are vulnerable to Uncontrolled Recursion in the query processing process. An attacker can cause the server to crash and deny service to all users by submitting a query containing a very long chain of operators, which leads to stack exhaustion and process termination.
This vulnerability can be mitigated by restricting untrusted users from executing arbitrary queries using the --deny-arbitrary-query capability flag, limiting untrusted access to the WebSocket /rpc endpoint, or running the server under a process manager that automatically restarts it after a crash.