What happened
An SSRF in SurrealDB's ML export path lets a caller supply an absolute URL as the model name, redirecting authenticated requests to internal hosts.
Why it matters
The ML export feature in a database that increasingly serves ML workloads can be abused to reach internal/cloud-metadata services from the database process.
Attack vector
The remote HTTP client router passes raw model names to Url::join during ML export, so an authenticated user can supply an absolute URL as the model name in ExportMl/ExportBytesMl to redirect requests to internal services.
Affected systems
SurrealDB before 4.0.0 (remote HTTP client router in ML export)
Mitigation
Upgrade to SurrealDB 4.0.0 or later (advisory GHSA-7r2m-g5wf-pj9j); restrict ML export access to trusted users.