Live threats

All CVEs / Kysely

CVE-2026-33468Kysely

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
—
Auth required
No
Published
Mar 26, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Kysely.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm kysely < 0.28.14 0.28.14 npm install kysely@0.28.14

Per OSV / GitHub Advisories (GHSA-8cpq-38p9-67gx). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
kyselykysely< 0.28.14

Official sources

References

Links published by the sources. Open them with care.