CVE-2026-32763: kysely · SQL Injection
Affects kyselySource CVE Database V5
Not known to be exploited · CVSS 8.2 High : upgrade to 0.28.12 soon.
Data as of 31 Oct 2026, 20:20 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.28.12
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 31 Oct 2026.
What to do
Upgrade kysely and kysely-org/kysely to 0.28.12.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| kysely-orgkysely | Affected
| Fixed in
|
npmkysely-org/kyselypkg:npm/kysely-org/kyselyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Immediate upgrade to Kysely version 0.28.12 or later is the primary mitigation to ensure proper escaping of JSON path inputs. Until upgrade is possible, organizations should audit all usages of .key() and .at() methods in JSON path queries to identify potentially unsafe patterns. Avoid passing user-controlled input directly into JSON path components without manual sanitization. Implement additional input validation and sanitization layers at the application level to reject or escape single quotes and other special characters in JSON path inputs. Employ runtime monitoring and anomaly detection to identify suspicious SQL query patterns indicative of injection attempts. Restrict database user privileges to minimize impact if exploitation occurs. Finally, conduct security testing and code reviews focusing on SQL injection vectors in query builder usage.
Description
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.