{"id":"CVE-2016-20018","aliases":["GHSA-4jv9-3563-23j3"],"url":"https://o3.security/vulnerability/CVE-2016-20018","summary":"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.","published":"2022-12-19T09:15:09.290Z","modified":"2026-10-20T10:47:25.966403113Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"knex","fixedVersion":"2.4.0"}],"fix":{"url":"https://github.com/knex/knex/pull/5417","label":"knex/knex#5417"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-20018"},{"type":"REPORT","url":"https://github.com/knex/knex/issues/1227"},{"type":"EVIDENCE","url":"https://www.ghostccamm.com/blog/knex_sqli/"},{"type":"WEB","url":"https://github.com/knex/knex/pull/5417"},{"type":"WEB","url":"https://github.com/knex/knex/commit/e145322da92749be7749f9ade5b5f5a66d6586a4"},{"type":"PACKAGE","url":"https://github.com/knex/knex"},{"type":"WEB","url":"https://github.com/knex/knex/releases/tag/2.4.0"},{"type":"WEB","url":"https://www.ghostccamm.com/blog/knex_sqli"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:47:25.966403113Z"}}