CVE-2026-33442 | kysely up to 0.28.13 sanitizeStringLiteral sql injection (GHSA-fr9j-6mvq-frcv)
VulDBArchived Mar 26, 2026✓ Full text saved
A vulnerability, which was classified as critical , has been found in kysely up to 0.28.13 . Affected by this vulnerability is the function sanitizeStringLiteral . This manipulation causes sql injection. This vulnerability appears as CVE-2026-33442 . The attack may be initiated remotely. There is no available exploit. It is advisable to upgrade the affected component.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-353684 · CVE-2026-33442 · GHSA-FR9J-6MVQ-FRCV
KYSELY UP TO 0.28.13 SANITIZESTRINGLITERAL SQL INJECTION
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
6.7 $0-$5k 1.82+
Summaryinfo
A vulnerability, which was classified as critical, was found in kysely up to 0.28.13. Affected by this issue is the function sanitizeStringLiteral. Such manipulation leads to sql injection. This vulnerability is traded as CVE-2026-33442. The attack may be launched remotely. There is no exploit available. You should upgrade the affected component.
Detailsinfo
A vulnerability, which was classified as critical, has been found in kysely up to 0.28.13. Affected by this issue is the function sanitizeStringLiteral. The manipulation with an unknown input leads to a sql injection vulnerability. Using CWE to declare the problem leads to CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is handled as CVE-2026-33442 since 03/19/2026. The exploitation is known to be difficult. The attack may be launched remotely. No form of authentication is required for exploitation. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1505.
Upgrading to version 0.28.14 eliminates this vulnerability.
Productinfo
Name
kysely
Version
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.28.6
0.28.7
0.28.8
0.28.9
0.28.10
0.28.11
0.28.12
0.28.13
CPE 2.3info
🔒
🔒
🔒
CPE 2.2info
🔒
🔒
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 6.8
VulDB Meta Temp Score: 6.7
VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 8.1
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: kysely 0.28.14
Timelineinfo
03/19/2026 CVE reserved
03/26/2026 +7 days Advisory disclosed
03/26/2026 +0 days VulDB entry created
03/26/2026 +0 days VulDB entry last update
Sourcesinfo
Advisory: GHSA-fr9j-6mvq-frcv
Status: Confirmed
CVE: CVE-2026-33442 (🔒)
GCVE (CVE): GCVE-0-2026-33442
GCVE (VulDB): GCVE-100-353684
Entryinfo
Created: 03/26/2026 19:02
Changes: 03/26/2026 19:02 (64)
Complete: 🔍
Cache ID: 99:6E2:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸