CVE-2026-134293
SurrealDB 3.1.0 before 4.0.0 SQL Injection via MCP Tool Identifier Escaped Backticks
High · 8.8Fix available
- CVSS
- 8.8
- EPSS
- 0.36% (p22)
- Published
- 2026-11-21
- Age
- 8d old
- Modified
- 2026-11-23
- Product
- surrealdb surrealdb
- Aliases
- GHSA-cr79-9p8r-p5wx
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Description
SurrealDB 3.1.0 before 4.0.0 contains an SQL injection vulnerability in its Model Context Protocol (MCP) server because the identifier validator (consume_backtick_ident and validate_identifier) treats the first backtick as the closing delimiter, ignoring escape characters that the SurrealQL parser honors. Attackers can supply MCP tool arguments containing an escaped backtick to break out of the quoted identifier and execute arbitrary SurrealQL statements.
Fixed in
4.0.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | surrealdb | >=3.1.0, <4.0.0 | 4.0.0 |
Sources
- NVD · first seen 8d ago · NVD terms of use
- OSV · first seen 8d ago · CC-BY 4.0
- CVE List · first seen 8d ago · CVE Terms of Use
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-cr79-9p8r-p5wx vendor-advisory
- https://www.vulncheck.com/advisories/surrealdb-3.1.0-before-4.0.0-sql-injection-via-mcp-tool-identifier-escaped-backticks third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134293.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-134293 advisory