SQL Injection Affecting kysely package, versions >=0.26.0 <0.28.17


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-KYSELY-16642092
  • published12 May 2026
  • disclosed11 May 2026
  • creditThanhVu

Introduced: 11 May 2026

NewCVE-2026-44635  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade kysely to version 0.28.17 or higher.

Overview

kysely is a Type safe SQL query builder

Affected versions of this package are vulnerable to SQL Injection via the visitJSONPathLeg function, which appends user-controlled values from .key() and .at() directly into single-quoted JSON path string literals without proper escaping. An attacker can inject arbitrary SQL by crafting input that breaks out of the JSON path string context.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-32763, which only escapes quote characters but not ., [, ], *, **, and ?.

CVSS Base Scores

version 4.0
version 3.1