CriticalGHSA-58v4-qwx5-7f59CVE-2019-10757SNYK-JS-KNEX-471962

SQL Injection in knex

Published 21 Oct 2019 · Updated 10 Sept 2026

Affected package

knexnpm
Affected
<0.19.5
Fixed in
0.19.5
Update to the fixed version for your release line, for example:npm install knex@0.19.5

Details

knex.js versions before 0.19.5 are vulnerable to SQL Injection attack. Identifiers are escaped incorrectly as part of the MSSQL dialect, allowing attackers to craft a malicious query to the host DB.

Is GHSA-58v4-qwx5-7f59 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected knex, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.