Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. kysely
  4. ›
  5. CVE-2026-33442

CVE-2026-33442: Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys.

March 20, 2026

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.

References

  • github.com/advisories/GHSA-fr9j-6mvq-frcv
  • github.com/kysely-org/kysely
  • github.com/kysely-org/kysely/security/advisories/GHSA-fr9j-6mvq-frcv
  • nvd.nist.gov/vuln/detail/CVE-2026-33442

Code Behaviors & Features

Detect and mitigate CVE-2026-33442 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.28.12 before 0.28.14

Fixed versions

  • 0.28.14

Solution

Upgrade to version 0.28.14 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

npm/kysely/CVE-2026-33442.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:25 +0000.