KeygraphLabs · CVE MCP

CVE-2016-20018 · mitre

CVE-2016-20018

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 2022-12-19, last changed 2026-06-17. Weakness: CWE-89.

CVSS
7.5
high, from NVD
EPSS
1.16%
percentile 68.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: knex 2.4.0 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in knex/knex by pull request #5417, e145322da9. Functions changed by the fix: whereRaw, isPlainObjectOrArray, output, whereBasic. Regression tests: test/unit/query/builder.js, test/db-less-test-suite.js, test/unit/dialects/mysql.js. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2022-12-19Published
2022-12-19Package advisory GHSA-4jv9-3563-23j3
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.16%
2026-12-03Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-4jv9-3563-23j3knex (npm)2.4.0

Also known as: GHSA-4jv9-3563-23j3

Related

CVEPublishedCVSSSummary
CVE-2019-107572019-10-089.8same package: knex (npm)
CVE-2026-311582026-10-269.8same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-1070832026-10-199.8same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-1070822026-10-198.8same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-1070812026-10-199.8same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-1114442026-10-169.8same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-934842026-10-158.6same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-1109112026-10-159.8same weakness (CWE-89) from the same CNA (mitre)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-20018, or call /api/v1/vulnerabilities/CVE-2016-20018. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org