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.0-beta.3 or higher.
Affected versions of this package are vulnerable to Improper Authorization in the RELATE process when a SET id = ... clause resolves to an existing edge id. An attacker can overwrite existing edge records without proper authorization by issuing a RELATE statement with a SET id targeting an existing record. This is only exploitable if the RELATE statement includes a SET id = ... clause that matches an existing edge id.
This vulnerability can be mitigated by verifying that no record with the target id exists before issuing the statement, or by restricting CREATE permission on the edge table to principals who also have UPDATE permission on the same table.