CVE-2026-44635
HIGH 7.5CVSS 3.1Kysely: JSON-path traversal injection via unsanitized path-leg metacharacters in `JSONPathBuilder.key()` / `.at()`
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.
- Published
- 27 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1284CWE-22CWE-89CWE-915
- Also known as
- GHSA-pv5w-4p9q-p3v2
- Sources
- NVDJSONOSV GHSA-pv5w-4p9q-p3v2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | kysely | >= 0.26.0, < 0.28.17 | 0.28.17 |
References
- https://github.com/kysely-org/kysely/security/advisories/GHSA-pv5w-4p9q-p3v2 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44635 · ADVISORY
- https://github.com/kysely-org/kysely · PACKAGE
- https://github.com/kysely-org/kysely/releases/tag/v0.28.17 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 27 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 May 2026)