HighGHSA-4jv9-3563-23j3CVE-2016-20018

Knex.js has a limited SQL injection vulnerability

Published 19 Dec 2022 · Updated 8 Nov 2023

Affected package

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

Details

Knex Knex.js through 2.3.0 has a limited SQL injection vulnerability that can be exploited to ignore the WHERE clause of a SQL query. This vulnerability has been fixed in version 2.4.0.

Is GHSA-4jv9-3563-23j3 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.