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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 37% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-20T20:48:33.000Z
- Modified: 2026-06-17T10:37:30.283Z
- Also known as: GHSA-fr9j-6mvq-frcv
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- kysely-org kysely: >= 0.28.12, < 0.28.14
- kysely (npm): from 0.28.12 before 0.28.14
- kysely kysely: from 0.28.12 before 0.28.14

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/kysely-org/kysely/security/advisories/GHSA-fr9j-6mvq-frcv> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33442> (advisory)
- <https://github.com/kysely-org/kysely> (package)

## Sources

- CVE List: [CVE-2026-33442](https://www.cve.org/CVERecord?id=CVE-2026-33442), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-fr9j-6mvq-frcv](https://github.com/advisories/GHSA-fr9j-6mvq-frcv), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33442](https://nvd.nist.gov/vuln/detail/CVE-2026-33442), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33442 · Whole record: https://cve.day/CVE-2026-33442.json · Rebuilt by cve.day 2026-11-25T22:59:17.062Z
