Credential Disclosure in SurrealDB CLI Commands
CVE-2026-134289
4.1MEDIUM
What is CVE-2026-134289?
SurrealDB versions 1.0.0 through 1.0.9 expose sensitive information via command line interface (CLI) help commands. Environment variables such as SURREAL_PASS and SURREAL_TOKEN are displayed in plain text during the execution of commands like 'surreal start', 'sql', 'import', 'export', and 'mcp'. This flaw arises because the CLI arguments do not specify hiding environment values. Consequently, attackers can recover critical database credentials by accessing terminal logs, continuous integration logs, or shared screen outputs. Users should upgrade to SurrealDB version 4.0.0 or higher to mitigate this risk.
Affected Version(s)
surrealdb 1.0.0 < 4.0.0
surrealdb 4.0.0
