CVE-2026-137489: SurrealDB before 4.0.0 SSRF and Credential Leakage via ML Model Export
SurrealDB before 4.0.0 contains a server-side request forgery vulnerability in the remote HTTP client router that passes raw model names to Url::join during ML export. Attackers can supply an absolute URL as the model name in ExportMl or ExportBytesMl commands to redirect authenticated requests and capture session tokens.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs low-privileged access to issue ExportMl or ExportBytesMl commands and must be able to supply the ML model name. Exploitation does not require user interaction.
What can an attacker obtain or affect?
The attacker can provide an absolute URL as the model name, causing the server's authenticated remote HTTP client to send a request to an attacker-controlled destination. This can expose session tokens and enables server-side request forgery.
Which deployments are affected?
SurrealDB versions before 4.0.0 are affected where ML export functionality is available to a low-privileged user. The provided information does not establish whether this functionality is enabled or reachable in a default deployment.
What is the available remediation?
Upgrade SurrealDB to version 4.0.0 or later. If upgrading cannot happen immediately, restrict low-privileged users from issuing ExportMl and ExportBytesMl commands.