CVE-2026-134289 Details
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.
A vulnerability in SurrealDB versions 1.0.0 prior to 4.0.0 allows for the accidental disclosure of sensitive credential information. The CLI help output of several commands, including 'surreal start', 'sql', 'import', 'export', and 'mcp', unintentionally reveals the values of the 'SURREAL_PASS' and 'SURREAL_TOKEN' environment variables in clear text. This issue arises because the CLI argument handling does not obscure environment variable values, leaving root database credentials exposed. Such terminal output can be captured in shell logs, CI logs, or during screen shares, creating a risk of unintentional credential leakage.
Users can upgrade to SurrealDB version 4.0.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whfh-76h8-2r66 | [email protected] | AdvisoryExploitRemedyVendor |
| https://www.vulncheck.com/advisories/surrealdb-1.0.0-before-4.0.0-credential-disclosure-via-cli-help-output | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-212 | Improper Removal of Sensitive Information Before Storage or Transfer | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SurrealDB | < 4.0.0 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 21, 2026 | New CVE Received | [email protected] |
Volerion