{"cve":"CVE-2026-33442","nvd":{"published":"2026-03-26T17:16:40.850","modified":"2026-06-17T10:37:30.283","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-89"],"references":["https://github.com/kysely-org/kysely/security/advisories/GHSA-fr9j-6mvq-frcv"],"products":["kysely:kysely"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-33442","score":0.0045,"percentile":0.39099,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fr9j-6mvq-frcv","url":"https://osv.dev/vulnerability/GHSA-fr9j-6mvq-frcv","summary":"Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys.","modified":"2026-03-27T21:18:51.182705Z","packages":[{"ecosystem":"npm","name":"kysely","purl":"pkg:npm/kysely","ranges":[">=0.28.12 <0.28.14"],"fixed":["0.28.14"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}