CVE-2026-32763 Details
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.
A SQL injection vulnerability has been identified in Kysely, a TypeScript SQL query builder, in versions through 0.28.11. The issue arises in the JSON path compilation for MySQL and SQLite dialects, where user-controlled values from the `.key()` and `.at()` methods are appended directly into JSON path string literals without proper escaping. This allows an attacker to break out of the JSON path context and inject arbitrary SQL. The vulnerability exists because the `visitJSONPathLeg()` function fails to sanitize single quotes, creating a loophole for SQL injection. In contrast, the `sanitizeIdentifier()` function correctly escapes identifiers, leaving JSON path values unprotected.
Users can upgrade to Kysely version 0.28.12 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/kysely-org/kysely/commit/0a602bff2f442f6c26d5e047ca8f8715179f6d24 | [email protected] | Patch |
| https://github.com/kysely-org/kysely/releases/tag/v0.28.12 | [email protected] | Release Notes |
| https://github.com/kysely-org/kysely/security/advisories/GHSA-wmrf-hv6w-mr66 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| kysely kysely | >= 0.26.0, < 0.28.12 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2026 | Initial Analysis | [email protected] |
| Mar 20, 2026 | New CVE Received | [email protected] |