{"id":"CVE-2026-33442","published":"2026-03-26T17:01:57Z","modified":"2026-03-26T18:47:53Z","title":"Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys.","vendor":"kysely-org","product":"kysely","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00487,"percentile":0.42819,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/kysely-org/kysely/security/advisories/GHSA-fr9j-6mvq-frcv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.56},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"kysely-org","affectedVersions":[{"vendor":"kysely-org","product":"kysely","versions":[">= 0.28.12, < 0.28.14"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-26T18:47:45.836821Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"kysely","vulnerableRanges":[">=0.28.12, <0.28.14"],"patched":["0.28.14"],"from":["GHSA-fr9j-6mvq-frcv"],"provenance":"source"}],"summary":{"text":"Kysely, the type-safe TypeScript SQL query builder from kysely-org, has an SQL injection flaw in its query compiler's string-literal sanitisation for JSON path keys, which escapes single quotes but not backslashes. An unauthenticated remote attacker can exploit it against a MySQL backend running with the default BACKSLASH_ESCAPES SQL mode by injecting a backslash before a single quote to break out of the literal and run arbitrary SQL, though the attack is considered high complexity and requires no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:25Z"},"euvd":{"id":"EUVD-2026-16264","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-32763","published":"2026-03-19","fixed":"0.28.12","kev":false,"link":{"from":"CVE-2026-32763","to":"CVE-2026-33442","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:kysely","fromFixed":"0.28.12","toFixed":"0.28.14","daysApart":7},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-33442","published":"2026-03-26","fixed":"0.28.14","kev":false},{"cve":"CVE-2026-33468","published":"2026-03-26","fixed":"0.28.14","kev":false},{"cve":"CVE-2026-44635","published":"2026-05-27","fixed":"0.28.17","kev":false,"link":{"from":"CVE-2026-33442","to":"CVE-2026-44635","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:kysely","fromFixed":"0.28.14","toFixed":"0.28.17","daysApart":62}]}}],"package":"npm:kysely"}}