SQL injection in knex.js
Priority MEDIUM 44CWE-89Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
EPSS 0.01159 67th percentileScored 2026-11-07
Fix Fixed knex (npm): 0.19.5
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | knex.js | All versions prior to version 0.19.5 | — | No fix listed | CNA |
| — | knex (npm) | before 0.19.5 | 0.19.5 | Patch available | GHSA-58v4-qwx5-7f59 |
- knex.js Vendor— Affected All versions prior to version 0.19.5 Fixed in — No fix listed CNA
- knex (npm) Vendor— Affected before 0.19.5 Fixed in 0.19.5 Patch available GHSA-58v4-qwx5-7f59
Remediation
- Fix · GHSA-58v4-qwx5-7f59 knex (npm) Fixed in 0.19.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2019-10757
- 2026-10-03 Alias added: GHSA-58v4-qwx5-7f59
References
More Knexjs Knex vulnerabilities
- TI-2016-09196 Knex Knex.js through 2.3.0 has a limited SQL injection vulnerability that can be… CVSS 3.1HIGH 7.5
Sources
- CVE-2019-10757 · CVE Program
- CVE-2019-10757 · NVD
- FIRST EPSS
- GHSA-58v4-qwx5-7f59 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences