# CVE-2026-33468: Kysely has a MySQL SQL Injection via Insufficient Backslash Escaping in `sql.lit(string)` usage or similar methods that append string literal values into the compiled SQL strings

- 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.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-20T20:48:55.000Z
- Modified: 2026-09-10T03:51:00.031Z
- Also known as: GHSA-8cpq-38p9-67gx
- 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. Prior to version 0.28.14, Kysely's `DefaultQueryCompiler.sanitizeStringLiteral()` only escapes single quotes by doubling them (`'` → `''`) but does not escape backslashes. When used with the MySQL dialect (where `NO_BACKSLASH_ESCAPES` is OFF by default), an attacker can use a backslash to escape the trailing quote of a string literal, breaking out of the string context and injecting arbitrary SQL. This affects any code path that uses `ImmediateValueTransformer` to inline values — specifically `CreateIndexBuilder.where()` and `CreateViewBuilder.as()`. Version 0.28.14 contains a fix.

(As written by CVE List.)

## Affected

- kysely-org kysely: < 0.28.14
- kysely (npm): before 0.28.14
- kysely kysely: 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-8cpq-38p9-67gx> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33468> (advisory)
- <https://github.com/kysely-org/kysely> (package)

## Sources

- CVE List: [CVE-2026-33468](https://www.cve.org/CVERecord?id=CVE-2026-33468), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-8cpq-38p9-67gx](https://github.com/advisories/GHSA-8cpq-38p9-67gx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33468](https://nvd.nist.gov/vuln/detail/CVE-2026-33468), Public domain, modified 2026-06-17

---

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