Affected versions
npmknex
- Affected versions
- < 2.4.0
- Fixed version
- 2.4.0
Exploitation
Description
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.
Links
- https://github.com/advisories/GHSA-4jv9-3563-23j3
- https://github.com/knex/knex
- https://github.com/knex/knex/commit/e145322da92749be7749f9ade5b5f5a66d6586a4
- https://github.com/knex/knex/issues/1227
- https://github.com/knex/knex/pull/5417
- https://github.com/knex/knex/releases/tag/2.4.0
- https://nvd.nist.gov/vuln/detail/CVE-2016-20018
- https://www.ghostccamm.com/blog/knex_sqli
- https://www.ghostccamm.com/blog/knex_sqli/
Credits
- alokmenghrajani
- pmartinat
- tdunlap607

