Vulnerability DatabaseCVE-2026-137489

CVE-2026-137489: 
Chainguard vulnerability analysis and mitigation

Overview

CVE-2026-137489 is a Server-Side Request Forgery (SSRF) vulnerability in SurrealDB's remote HTTP client router that enables authenticated attackers to redirect HTTP requests and capture session tokens during ML model export operations. It affects all SurrealDB versions before 4.0.0 and was disclosed on November 26, 2026. The vulnerability was assigned a CVSS v3.1 base score of 4.3 (Medium) and a CVSS v4.0 base score of 5.3 (Medium) (GitHub Advisory, SurrealDB Advisory).

Technical details

The root cause is improper URL handling in surrealdb/src/engine/remote/http/mod.rs, where raw user-supplied model names are passed directly to Url::join() without sanitization (CWE-918). Because Url::join() treats absolute URLs as full replacements rather than path segments, an attacker can supply a model name such as https://attacker.com/ml in an ExportMl or ExportBytesMl command, causing the HTTP client to issue the request to the attacker-controlled server with the current session's authentication tokens and headers attached. Exploitation requires only low-privilege authenticated access and no user interaction. The recommended fix is to URL-encode model names before appending them to the path, or to use url.path_segments_mut() to enforce strict path-segment treatment (SurrealDB Advisory, GitHub Advisory).

Impact

Successful exploitation results in credential/session token disclosure, as the SurrealDB server forwards authenticated HTTP requests — including session tokens and headers — to an attacker-controlled host. This can allow an attacker to hijack authenticated sessions, potentially enabling unauthorized access to SurrealDB resources or lateral movement within environments where those tokens are reused. Integrity of subsequent systems is also at low risk, as the redirected requests may trigger unintended actions on attacker-controlled infrastructure (SurrealDB Advisory, GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at the time of disclosure (GitHub Advisory). The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires low-privilege authenticated access, making it accessible to any user with ML export permissions but limiting opportunistic mass exploitation.

Exploitation steps

  1. Obtain authenticated access: Acquire low-privilege credentials to a SurrealDB instance running a version prior to 4.0.0 (e.g., via a trial account or compromised user credentials).
  2. Set up a listener: Deploy an attacker-controlled HTTP server (e.g., using nc, python -m http.server, or Burp Collaborator) to capture incoming requests and headers.
  3. Craft a malicious model name: Prepare an ExportMl or ExportBytesMl command where the model name is set to an absolute URL pointing to the attacker's server, e.g., https://attacker.com/capture.
  4. Issue the command: Send the crafted export command to the SurrealDB server via the remote HTTP client interface.
  5. Capture session tokens: The SurrealDB server calls Url::join() with the attacker-supplied absolute URL, overriding the intended destination and forwarding the HTTP request — including authentication headers and session tokens — to the attacker's server.
  6. Reuse captured tokens: Use the intercepted session tokens to authenticate as the victim user against the SurrealDB instance or other services sharing those credentials (SurrealDB Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from the SurrealDB server to unexpected external hosts, particularly during ML export operations; connections to unknown IP addresses or domains not associated with configured ML model repositories.
  • Logs: SurrealDB access or application logs showing ExportMl or ExportBytesMl commands with model names containing http:// or https:// absolute URLs rather than standard model name strings.
  • Process/Behavior: Unusual HTTP client activity originating from the SurrealDB process directed at external or internal hosts not part of normal operational traffic patterns (SurrealDB Advisory).

Mitigation and workarounds

Upgrade SurrealDB to version 4.0.0 or later, which pins ML export requests to their intended host and prevents authenticated request redirection (SurrealDB Advisory). As interim mitigations, restrict network egress from SurrealDB instances to only trusted destinations, limit ML export permissions to only users who require them, and implement network segmentation to reduce the impact of any captured session tokens. Monitor for ExportMl/ExportBytesMl commands containing absolute URLs in model name fields.

Additional resources


Source: This report was generated using AI

Related Chainguard vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-137490HIGH8.7
  • Chainguard logoChainguard
  • surrealdb
NoYesNov 26, 2026
CVE-2026-137588HIGH7.1
  • Chainguard logoChainguard
  • cpe:2.3:a:librechat:librechat
NoYesNov 26, 2026
CVE-2026-137489MEDIUM5.3
  • Chainguard logoChainguard
  • surrealdb
NoYesNov 26, 2026
CVE-2026-137488MEDIUM5.3
  • Chainguard logoChainguard
  • surrealdb
NoYesNov 26, 2026
CVE-2026-137656LOW2.3
  • Chainguard logoChainguard
  • librechat
NoYesNov 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management