SurrealDB 1.0.0 before 4.0.0 Credential Disclosure via CLI Help Output
- State
- Published
- Severity
- 4.1 Medium
- Published
- Nov 21, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 20, 2026
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.
| Product | Versions |
|---|---|
| surrealdb surrealdb | 1.0.0 to before 4.0.0 Affected4.0.0 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.1 Medium | VulnCheck | |
| 3.1 | 4.0 Medium | VulnCheck |
Weaknesses
- CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
References
- GitHub Security Advisory (GHSA-whfh-76h8-2r66)Vendor Advisory
- VulnCheck Advisory: SurrealDB 1.0.0 before 4.0.0 Credential Disclosure via CLI Help OutputThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.