{"id":"GHSA-4jv9-3563-23j3","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.","aliases":["CVE-2016-20018"],"modified":"2023-11-08T03:58:23.366089Z","published":"2022-12-19T09:30:23Z","database_specific":{"nvd_published_at":"2022-12-19T09:15:00Z","cwe_ids":["CWE-89"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-12-20T17:19:47Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-20018"},{"type":"WEB","url":"https://github.com/knex/knex/issues/1227"},{"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"}],"affected":[{"package":{"name":"knex","ecosystem":"npm","purl":"pkg:npm/knex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-4jv9-3563-23j3/GHSA-4jv9-3563-23j3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}