Vulnerability library
Security checkJune 08, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmkysely

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Kysely 0.28.12 added a sanitizeStringLiteral() call inside DefaultQueryCompiler.visitJSONPathLeg (commit 0a602bf, PR #1727) to fix CVE-2026-32763 (GHSA-wmrf-hv6w-mr66). The fix only doubles single quotes (' → ''); it does not escape JSON-path metacharacters (., [, ], *, **, ?).

Recommendation

Update the kysely package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 0.26.0, < 0.28.17
  • Patched version(s): 0.28.17

References

Could your website be exposed too?

SmartScanner can check your website for Kysely: JSON-path traversal injection via unsanitized path-leg metacharacters in `JSONPathBuilder.key()` / `.at()` and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 08, 2026