Live threats

All CVEs / Knexjs

CVE-2019-10757Knexjs Knex

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Oct 8, 2019
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:H/A:H

What happens

knex.js versions before 0.19.5 are vulnerable to SQL Injection attack. Identifiers are escaped incorrectly as part of the MSSQL dialect, allowing attackers to craft a malicious query to the host DB.

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 < 0.19.5 0.19.5 npm install knex@0.19.5

Per OSV / GitHub Advisories (GHSA-58v4-qwx5-7f59). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
knexjsknex< 0.19.5

Official sources

References

Links published by the sources. Open them with care.

  • snyk.io Exploit Third Party Advisory