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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.48% (percentile 34, 2026-11-26)
- **CWE:** CWE-89
- **Aliases:** GHSA-wmrf-hv6w-mr66
- **Published:** 2026-03-18T12:59:32.000Z
- **Modified:** 2026-09-10T03:50:41.567Z

## Who should check

- Projects that depend on npm package kysely (\>= 0.26.0, \< 0.28.12)
- Anyone running kysely-org kysely \>= 0.26.0, \< 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.

## Affected and fixed versions

- npm `kysely`: affected \>= 0.26.0, \< 0.28.12; fixed 0.28.12 (osv)
- kysely-org kysely: \>= 0.26.0, \< 0.28.12 (cvelist)

## Mitigation

- Upgrade kysely to 0.28.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-32763. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32763.md
Affected: kysely >= 0.26.0, < 0.28.12
Fixed in: 0.28.12

Steps:
1. Search this machine and project for kysely (npm), kysely-org kysely: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-32763 being exploited?

There is no confirmed exploitation: CVE-2026-32763 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-32763?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-32763?

kysely \>= 0.26.0, \< 0.28.12.

### Is there a fix for CVE-2026-32763?

Yes. Fixed in 0.28.12. Upgrade kysely to 0.28.12 or later.

### How do I check if I'm affected by CVE-2026-32763?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/kysely-org/kysely/security/advisories/GHSA-wmrf-hv6w-mr66>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-32763>
- patch: <https://github.com/kysely-org/kysely/commit/0a602bff2f442f6c26d5e047ca8f8715179f6d24>
- other: <https://github.com/kysely-org/kysely/releases/tag/v0.28.12>
- other: <https://github.com/kysely-org/kysely>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32763>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wmrf-hv6w-mr66> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-32763> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32763>
