{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-32763","id":"CVE-2026-32763","title":"SQL Injection via unsanitized JSON path keys when ignoring/silencing compilation errors or using `Kysely<any>`.","description":"Kysely is a type-safe TypeScript SQL query builder. Versions up to and including 0.28.11 has a SQL injection vulnerability in JSON path compilation for MySQL and SQLite dialects. The `visitJSONPathLeg()` function appends user-controlled values from `.key()` and `.at()` directly into single-quoted JSON path string literals (`'$.key'`) without escaping single quotes. An attacker can break out of the","descriptionLong":"Kysely is a type-safe TypeScript SQL query builder. Versions up to and including 0.28.11 has a SQL injection vulnerability in JSON path compilation for MySQL and SQLite dialects. The `visitJSONPathLeg()` function appends user-controlled values from `.key()` and `.at()` directly into single-quoted JSON path string literals (`'$.key'`) without escaping single quotes. An attacker can break out of the JSON path string context and inject arbitrary SQL. This is inconsistent with `sanitizeIdentifier()`, which properly doubles delimiter characters for identifiers — both are non-parameterizable SQL constructs requiring manual escaping, but only identifiers are protected. Version 0.28.12 fixes the issue.","published":"2026-03-19T23:14:58.747Z","updated":"2026-10-28T02:30:50.042749125Z","reserved":"2026-03-13T18:53:03.533Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["kysely-org kysely"],"affectedProducts":[{"vendor":"kysely-org","product":"kysely","defaultStatus":null,"versions":[{"version":">= 0.26.0, < 0.28.12","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"kysely","purl":"pkg:npm/kysely","ranges":[">=0.26.0 <0.28.12"],"fixed":["0.28.12"],"advisory":"GHSA-wmrf-hv6w-mr66"}],"cwes":["CWE-89"],"aliases":["GHSA-wmrf-hv6w-mr66"],"references":[{"url":"https://github.com/kysely-org/kysely/security/advisories/GHSA-wmrf-hv6w-mr66","tags":["x_refsource_CONFIRM","Exploit","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/kysely-org/kysely/commit/0a602bff2f442f6c26d5e047ca8f8715179f6d24","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/kysely-org/kysely/releases/tag/v0.28.12","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32763.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32763","tags":["advisory"]},{"url":"https://github.com/kysely-org/kysely","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00462,"epssPercentile":0.40825,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-32763","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32763","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-32763","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wmrf-hv6w-mr66","ok":true,"note":"GHSA-wmrf-hv6w-mr66"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-32763","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}