← VULNERABILITIES

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

EcosystemPackageRangeFixed
vendorsurrealdb>=3.1.0, <4.0.04.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

JSON