CVE-2026-137489 in SurrealDBinfo

Summary

by MITRE • 11/26/2026

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.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

SurrealDB versions prior to 4.0.0 contain a critical server-side request forgery vulnerability within its remote HTTP client router, specifically affecting the machine learning export functionality. This flaw arises from improper validation of user-supplied input when handling model names during ML export operations. The system passes raw model name strings directly into Url::join without sufficient sanitization or restriction to relative paths. Consequently, an attacker who has authenticated access to the SurrealDB instance can exploit this logic error by supplying a fully qualified absolute URL as the model identifier in ExportMl or ExportBytesMl commands. This manipulation causes the internal HTTP client to redirect its requests away from the intended local endpoints toward arbitrary external domains controlled by the adversary, effectively bypassing standard same-origin policies and access controls that would normally restrict such behavior.

The operational impact of this vulnerability is severe due to its potential for session hijacking and data exfiltration. Because SurrealDB typically handles sensitive user authentication tokens within these HTTP requests, redirecting them to an attacker-controlled server allows the adversary to capture valid session cookies or authorization headers in transit. This enables unauthorized access to other services that rely on token-based authentication if those tokens are reused across different platforms, a common pattern known as cross-site request forgery leading to account takeover. Furthermore, this vulnerability can be leveraged for internal network reconnaissance by forcing the SurrealDB server to make requests to internal IP addresses or private endpoints that are otherwise inaccessible from the public internet, potentially exposing sensitive infrastructure details or facilitating further lateral movement within a compromised environment.

From a classification perspective, this issue aligns with CWE-918 Server-Side Request Forgery (SSRF), as it allows an authenticated actor to influence the server's ability to make requests to unintended destinations. It also relates to CWE-20 Improper Input Validation, where the application fails to verify that the model name parameter is a valid relative path or local resource identifier rather than an absolute URL. In terms of offensive security frameworks, this vulnerability maps to MITRE ATT&CK technique T1598 Phishing for Information within Systems, specifically through SSRF-based token theft, and potentially T1046 Network Service Discovery if used to probe internal network services. The exploitation requires authentication, which limits the attack surface to compromised or credentialed users but significantly increases the severity due to the high trust level associated with authenticated sessions in database management systems.

Mitigation strategies must focus on immediate patching and defensive coding practices. Organizations running SurrealDB should upgrade to version 4.0.0 or later, where this input validation flaw has been addressed by enforcing strict URL parsing rules that reject absolute URLs for model names. In the interim, if upgrading is not immediately feasible, administrators can implement network-level controls such as firewall rules to block outbound HTTP/HTTPS traffic from the SurrealDB host to untrusted external domains, effectively neutralizing the exfiltration vector. Additionally, deploying a web application firewall with SSRF detection capabilities may help identify and block malformed requests attempting to redirect internal services. Long-term remediation should include implementing strict allow-lists for allowed destinations in any HTTP client logic and ensuring that all user-supplied inputs used in URL construction are validated against expected formats before processing.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!