Vulnerability library
Security checkMarch 27, 2026

Kysely has a MySQL SQL Injection via Insufficient Backslash Escaping in `sql.lit(string)` usage or similar methods that

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’s DefaultQueryCompiler.sanitizeStringLiteral() only escapes single quotes by doubling them (' → '') but does not escape backslashes.

Recommendation

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

  • Affected version(s): <= 0.28.13
  • Patched version(s): 0.28.14

References

Could your website be exposed too?

SmartScanner can check your website for Kysely has a MySQL SQL Injection via Insufficient Backslash Escaping in `sql.lit(string)` usage or similar methods that and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 27, 2026