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.1 or higher.
Affected versions of this package are vulnerable to Session Fixation in the sessions process. An attacker can gain unauthorized access to authenticated user sessions by supplying arbitrary session identifiers to the /rpc endpoint, allowing them to read, modify, or delete data accessible to those sessions, escalate privileges, and invalidate sessions. This is only exploitable if the target client has previously attached a session via the attach method over HTTP /rpc.
This vulnerability can be mitigated by avoiding SDKs and client flows that call attach against HTTP /rpc, preferring WebSocket transport or REST endpoints, and restricting /rpc access to trusted clients at the network layer.