GitHub Advisory Database
GHSA-4jv9-3563-23j3
Knex.js has a limited SQL injection vulnerability
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | knex | All versions before 2.4.0 (fixed in 2.4.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-20018
- https://github.com/knex/knex/issues/1227
- https://github.com/knex/knex/pull/5417
- https://github.com/knex/knex/commit/e145322da92749be7749f9ade5b5f5a66d6586a4
- https://github.com/knex/knex
- https://github.com/knex/knex/releases/tag/2.4.0
- https://www.ghostccamm.com/blog/knex_sqli