Vulnerability Details CVE-2026-32763
Kysely is a type-safe TypeScript SQL query builder. Versions up to and including 0.28.11 has a SQL injection vulnerability in JSON path compilation for MySQL and SQLite dialects. The `visitJSONPathLeg()` function appends user-controlled values from `.key()` and `.at()` directly into single-quoted JSON path string literals (`'$.key'`) without escaping single quotes. An attacker can break out of the JSON path string context and inject arbitrary SQL. This is inconsistent with `sanitizeIdentifier()`, which properly doubles delimiter characters for identifiers — both are non-parameterizable SQL constructs requiring manual escaping, but only identifiers are protected. Version 0.28.12 fixes the issue.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 3.4%
CVSS Severity
CVSS v3 Score 8.2
Products affected by CVE-2026-32763
-
cpe:2.3:a:kysely:kysely:0.26.0
-
cpe:2.3:a:kysely:kysely:0.26.1
-
cpe:2.3:a:kysely:kysely:0.26.2
-
cpe:2.3:a:kysely:kysely:0.26.3
-
cpe:2.3:a:kysely:kysely:0.27.0
-
cpe:2.3:a:kysely:kysely:0.27.1
-
cpe:2.3:a:kysely:kysely:0.27.2
-
cpe:2.3:a:kysely:kysely:0.27.3
-
cpe:2.3:a:kysely:kysely:0.27.4
-
cpe:2.3:a:kysely:kysely:0.27.5
-
cpe:2.3:a:kysely:kysely:0.27.6
-
cpe:2.3:a:kysely:kysely:0.28.0
-
cpe:2.3:a:kysely:kysely:0.28.1
-
cpe:2.3:a:kysely:kysely:0.28.10
-
cpe:2.3:a:kysely:kysely:0.28.11
-
cpe:2.3:a:kysely:kysely:0.28.2
-
cpe:2.3:a:kysely:kysely:0.28.3
-
cpe:2.3:a:kysely:kysely:0.28.4
-
cpe:2.3:a:kysely:kysely:0.28.5
-
cpe:2.3:a:kysely:kysely:0.28.6
-
cpe:2.3:a:kysely:kysely:0.28.7
-
cpe:2.3:a:kysely:kysely:0.28.8
-
cpe:2.3:a:kysely:kysely:0.28.9