Vulnerabilities/

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

Severity:
High

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:

References

Related Issues

Tags:
npm
kysely
Anything's wrong? Let us know Last updated on March 27, 2026