CVE-2019-10757Knexjs Knex
Critical 9.8 No auth needed
Follow: this CVE · Knexjs · Knexjs Knex We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Knex.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| knexjs | knex | < 0.19.5 |
Official sources
References
Links published by the sources. Open them with care.
- snyk.io Exploit Third Party Advisory