CVE-2026-33468: kysely · SQL Injection
Affects kyselySource CVE Database V5
Not known to be exploited · CVSS 8.1 High : upgrade to 0.28.14 soon.
Data as of 30 Oct 2026, 11:52 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.14
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 26 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 30 Oct 2026.
What to do
Upgrade kysely and kysely-org/kysely to 0.28.14.
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
The primary mitigation is to upgrade Kysely to version 0.28.14 or later, which includes the fix that properly escapes backslashes in string literals. Until upgrading is possible, organizations should audit all code paths that use ImmediateValueTransformer, especially CreateIndexBuilder.where() and CreateViewBuilder.as(), to ensure no untrusted input is inlined without proper escaping or parameterization. Avoid inlining user input directly into queries; instead, use parameterized queries or prepared statements wherever possible. Additionally, consider enabling MySQL's NO_BACKSLASH_ESCAPES mode to disable backslash escaping, though this may require application compatibility testing. Implement Web Application Firewalls (WAFs) with SQL injection detection rules to provide a layer of defense. Monitor logs for suspicious query patterns indicative of injection attempts. Conduct security code reviews focused on query construction and input sanitization. Educate developers about database-specific escaping nuances and the risks of improper sanitization in query builders. Finally, maintain an inventory of applications using Kysely to prioritize patching and testing.
Description
Kysely is a type-safe TypeScript SQL query builder. Prior to version 0.28.14, Kysely's `DefaultQueryCompiler.sanitizeStringLiteral()` only escapes single quotes by doubling them (`'` → `''`) but does not escape backslashes. When used with the MySQL dialect (where `NO_BACKSLASH_ESCAPES` is OFF by default), an attacker can use a backslash to escape the trailing quote of a string literal, breaking out of the string context and injecting arbitrary SQL. This affects any code path that uses `ImmediateValueTransformer` to inline values — specifically `CreateIndexBuilder.where()` and `CreateViewBuilder.as()`. Version 0.28.14 contains a fix.