Live threats

All CVEs / Kysely

CVE-2026-33442Kysely

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. 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.

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.12 < 0.28.14 0.28.14 npm install kysely@0.28.14

Per OSV / GitHub Advisories (GHSA-fr9j-6mvq-frcv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
kyselykysely≥ 0.28.12 < 0.28.14

Official sources

References

Links published by the sources. Open them with care.