SQL Injection in Kysely
CVE-2026-33442
Kysely is a type-safe TypeScript SQL query builder. In versions 0.28.12 and 0.28.13, the `sanitizeStringLiteral` method in Kysely's query compiler escapes single quotes (`'` → `''`) but does not escape backslashes. On MySQL with the default `BACKSLASH_ESCAPES` SQL mode, an attacker can inject a backslash before a single quote to neutralize the escaping, breaking out of the JSON path string literal and injecting arbitrary SQL. Version 0.28.14 fixes the issue.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (36.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 36th percentile — 36.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.000
Affected products
- Kysely
- Kysely-Org Kysely — versions >= 0.28.12, < 0.28.14
Weakness classification (CWE)
References
- github.com/kysely-org/kysely/security/advisories/GHSA-fr9j-6mvq-frcv (Exploit, Mitigation, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-33442?
- CVE-2026-33442 is a high-severity vulnerability in Kysely, classified under SQL Injection. CVSS score: 8.1/10. Published 2026-03-26.
- How severe is CVE-2026-33442?
- High severity. CVSS v3 base score is 8.1 out of 10.