Skip to content

CVE-2026-134293 SurrealDB 3.1.0 before 4.0.0 SQL Injection via MCP Tool Identifier Escaped Backticks

HighCVSS 8.8 EPSS 0.36%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io surrealdb >= 3.1.0, < 4.0.0 4.0.0 Fixed

Affected products

ProductAffected versionsFixed in
crates.io surrealdb >= 3.1.0, < 4.0.0 4.0.0

References