High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-20018
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:39 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-20018
Complete source record
{
"id": "c820d4b65379e530a66aa4258de41f096199b07b56924911dfd2f36036108d04",
"url": "https://osv.dev/vulnerability/CVE-2016-20018",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-20018",
"summary": "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.",
"evidence": "osv:CVE-2016-20018",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-20018",
"aliases": [
"CVE-2016-20018",
"GHSA-4jv9-3563-23j3"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/knex/knex",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "6bed5e99dd840b33efd9022c9ac946ca9d5425ad"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:knexjs:knex:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.3.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.3.0",
"2.2.0",
"2.1.0",
"2.0.0",
"1.0.7",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.1",
"1.0.0",
"0.95.14",
"0.95.12",
"0.95.11",
"0.95.10",
"0.95.8",
"0.95.5",
"0.95.3",
"0.95.2",
"0.95.0",
"0.21.15",
"0.21.14",
"0.21.13",
"0.21.10",
"0.21.9",
"0.21.5",
"0.21.3",
"0.21.2",
"0.21.1",
"0.21.0",
"0.20.11",
"0.20.6",
"0.20.4",
"0.20.2",
"0.20.1",
"0.20.0",
"0.19.5",
"0.19.3",
"0.19.0",
"0.18.4",
"0.17.2",
"0.17.0",
"0.16.3",
"v0.16.2",
"0.16.1",
"0.16.0",
"0.15.2",
"v0.15.1",
"0.15.0",
"0.14.6",
"0.14.5",
"0.14.4",
"0.14.3",
"0,14,2",
"0.14.1",
"0.13.0",
"0.12.9",
"0.12.8",
"0.12.1",
"0.12.0",
"0.11.10",
"0.11.9",
"0.11.8",
"0.11.7",
"0.11.6",
"0.11.4",
"0.11.5",
"0.11.3",
"0.11.2",
"0.11.1",
"0.11.0",
"0.10.0",
"0.10.0-rc1",
"0.9.0",
"0.8.6",
"0.8.5",
"0.8.4",
"0.8.3",
"0.8.2",
"0.8.1",
"0.8.0",
"0.6.22",
"0.7.3",
"0.7.2",
"0.7.1",
"0.7.0",
"0.6.15",
"0.6.21",
"0.6.20",
"0.6.19",
"0.6.18",
"0.6.17",
"0.6.16",
"0.6.14",
"0.6.13",
"0.6.12",
"0.6.11",
"0.6.10",
"0.6.9",
"0.6.8",
"0.6.7",
"0.6.6",
"0.6.5",
"0.6.4",
"0.6.3",
"0.6.2",
"0.6.1",
"0.6.0",
"0.5.2",
"0.5.1",
"0.5.0",
"0.4.11",
"0.4.10",
"0.4.9",
"0.4.8",
"0.4.7",
"0.4.6",
"0.4.5",
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.4.0",
"0.2.6",
"0.2.5",
"0.2.4",
"0.2.3",
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.8",
"0.1.7",
"0.1.6",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-20018.json"
}
}
],
"modified": "2026-10-20T10:47:25.966403113Z",
"provider": "osv",
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2016-20018",
"https://github.com/knex/knex/issues/1227",
"https://www.ghostccamm.com/blog/knex_sqli/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-20018",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379392,
"published_at": "2022-12-19T09:15:09.29+00:00"
}