CVE-2026-134289
Deferred Deferred - Pending Action

SurrealDB CLI Discloses Sensitive Environment Variables in Help Output

Vulnerability report for CVE-2026-134289, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

Description

SurrealDB 1.0.0 before 4.0.0 prints SURREAL_PASS and SURREAL_TOKEN environment variable values in clear text in the --help and -h output of CLI commands such as surreal start, sql, import, export, and mcp, because the arguments do not set clap's hide_env_values. Anyone who later sees that terminal output, for example in shell logs, CI logs, or screen shares, can obtain root database credentials.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
surrealdb surrealdb to 4.0.0 (exc)
surrealdb surrealdb From 1.0.0 (inc) to 4.0.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-212 The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects SurrealDB versions before 4.0.0. When users run CLI commands like surreal start, sql, import, export, or mcp with --help or -h flags, the tool prints the values of SURREAL_PASS and SURREAL_TOKEN environment variables in plain text. This happens because the code does not hide these values in help output.

Detection Guidance

Check SurrealDB CLI help output for exposed credentials by running commands like 'surreal start --help', 'surreal sql --help', 'surreal import --help', 'surreal export --help', 'surreal mcp --help', 'surreal ml import --help', or 'surreal ml export --help'. If SURREAL_PASS or SURREAL_TOKEN values appear in plain text, the system is vulnerable.

Impact Analysis

If someone accesses terminal output such as shell logs, CI logs, or screen shares, they could obtain root database credentials. This may lead to unauthorized access to the database, data breaches, or further exploitation of the system.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, which may violate GDPR's data protection principles or HIPAA's security requirements for protecting health information. Organizations may face compliance violations, fines, or reputational damage if credentials are exposed.

Mitigation Strategies

Upgrade SurrealDB to version 4.0.0 or later where the issue is patched. If upgrading is not possible, review and modify the CLI argument definitions to set hide_env_values = true for affected commands to prevent credential exposure in help output.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134289. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...