Ad

CVE-2026-33442

HIGH CVSS 3.1: 8.1 EPSS 0.07%
Updated Mar 31, 2026
MySQL
Parameter Value
CVSS 8.1 (HIGH)
Affected Versions 0.28.12 — 0.28.14
Fixed In 0.28.14
Type CWE-89 (SQL Injection)
Vendor MySQL
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Kysely Kysely
cpe:2.3:a:kysely:kysely:*:*:*:*:*:node.js:*:*
0.28.12 0.28.14