Skip to main content
VulnerabilityPublished

CVE-2026-33468: kysely · SQL Injection

Affects kyselySource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.1 High : upgrade to 0.28.14 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
kysely-orgkyselyAffected
  • <0.28.14
Fixed in
  • 0.28.14
npmkysely-org/kyselypkg:npm/kysely-org/kyselyOther threatsAffected
  • <0.28.14
Fixed in
  • 0.28.14

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.

References

Community reviews

Loading reviews…