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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd percentile)

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-15763565
  • published25 Mar 2026
  • disclosed20 Mar 2026
  • creditEthan Kim

Introduced: 20 Mar 2026

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

How to fix?

Upgrade kysely to version 0.28.12 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.

CVSS Base Scores

version 4.0
version 3.1