Skip to main content
No exploitation reportedFix available

CVE-2016-20018

No exploitation reported by the sources we read.

  • Published2022-12-19
  • Fixed in2.4.0
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-12-1909:15CVE publishedNVD

Versions per branch

OSV · NVD
knex
BranchAffectedFixed in
2.4< 2.4.02.4.0
Knexjs knex
BranchAffectedFixed in
2.3≤ 2.3.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/knexRoot:npmall versions · fixed in 0.20.15-root.io.1
  • @rootio/knexRoot:npmall versions · fixed in 0.20.15-root.io.2
  • @rootio/knexRoot:npmall versions · fixed in 0.95.15-root.io.1
  • knexTuxCare:npmfrom 0.95.15-tuxcare.0 · fixed in 0.95.15-tuxcare.1
  • knexRoot:npmall versions · fixed in 0.95.15+aikido.2and 1 other package
  • knexRoot:npmall versions · fixed in 0.20.15-aikido.2
  • knexRoot:npmall versions · fixed in 0.95.15-aikido.1
  • soketiCleanStartall versions · fixed in 1.4.0-r0

Vendor advisories

Full record on NVD

Fix

  1. Update knex to 2.4.0

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2022-12-19
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-4jv9-3563-23j3

Frequently asked questions

What is 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.

Is CVE-2016-20018 actively exploited?

Active exploitation of CVE-2016-20018 has not been confirmed. Its EPSS score was 1.1% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2016-20018?

CVE-2016-20018 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running knex? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record