CVE-2026-134293
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_backt…
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of data being read, low risk of data or systems being changed.
Affected products · Surrealdb
| Product | Affected versions |
|---|---|
| Surrealdb | from 3.1.0 before 4.0.0 |