Skip to main content
VulnerabilityPublished

CVE-2026-33442: 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 39% 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.12 <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, where the vulnerability is fixed by properly escaping backslashes in string literals. Organizations should audit their codebases to identify usage of Kysely versions 0.28.12 or 0.28.13 and plan immediate upgrades. Additionally, developers should review all SQL query constructions to ensure proper parameterization and avoid manual string concatenation. Enforcing the use of parameterized queries or prepared statements can reduce injection risks. Database administrators should verify MySQL SQL modes and consider disabling BACKSLASH_ESCAPES if feasible, although this may impact application compatibility. Implementing Web Application Firewalls (WAFs) with rules to detect and block SQL injection patterns can provide temporary protection. Finally, monitoring database logs for suspicious query patterns and unusual activity can help detect exploitation attempts early.

Description

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.

References

Community reviews

Loading reviews…