Live threats

All CVEs / Knexjs

CVE-2016-20018Knexjs Knex

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 67
Auth required
No
Published
Dec 19, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Knex.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm knex < 2.4.0 2.4.0 npm install knex@2.4.0

Per OSV / GitHub Advisories (GHSA-4jv9-3563-23j3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
knexjsknex≤ 2.3.0

Official sources

References

Links published by the sources. Open them with care.