CVE-2016-20018
HIGH 7.5CVSS 3.1Knex.js has a limited SQL injection vulnerability
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.
- Published
- 19 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-4jv9-3563-23j3
- Sources
- NVDJSONOSV GHSA-4jv9-3563-23j3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | knexjs | knexcpe:2.3:a:knexjs:knex:*:*:*:*:*:node.js:*:* |
<= 2.3.0 | |
| OSV | npm | knex | < 2.4.0 | 2.4.0 |
References
- https://github.com/knex/knex/issues/1227 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-20018 · ADVISORY
- https://www.ghostccamm.com/blog/knex_sqli/ · Exploit, Third Party Advisory, WEB
- https://github.com/knex/knex/pull/5417 · WEB
- https://github.com/knex/knex/commit/e145322da92749be7749f9ade5b5f5a66d6586a4 · WEB
- https://github.com/knex/knex · PACKAGE
- https://github.com/knex/knex/releases/tag/2.4.0 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 19 Dec 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 Dec 2022)