{"id":"CVE-2019-10757","aliases":["EUVD-2019-0687","GHSA-58v4-qwx5-7f59","SNYK-JS-KNEX-471962"],"status":"published","title":"SQL Injection in knex","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01159,"percentile":0.67326,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2019-10-08T19:04:11Z","modified":"2026-10-24T10:30:37Z","fixes":[{"ecosystem":"npm","package":"knex","fixed_in":["0.19.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"knex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19.5"}]}]},{"source":"osv","ecosystem":"npm","package":"knex","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.19.5"}]}]}],"products":[{"vendor":"knexjs","product":"knex"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KNEX-471962","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10757","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-58v4-qwx5-7f59"}],"sources":{"cve":[{"id":"CVE-2019-10757","description":"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.","status":"published","published":"2019-10-08T19:04:11Z","modified":"2024-08-04T22:32:01.495Z","updated_at":"2026-11-02T14:20:19.399352Z"}],"euvd":[{"id":"EUVD-2019-0687","description":"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.","status":"published","published":"2019-10-08T19:04:11Z","modified":"2024-08-04T22:32:01Z","updated_at":"2026-11-03T02:40:51.633398Z"}],"ghsa":[{"id":"GHSA-58v4-qwx5-7f59","title":"SQL Injection in knex","description":"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.","status":"published","published":"2019-10-21T16:12:13Z","modified":"2023-02-01T05:02:42Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:36:31.364752Z"}],"nvd":[{"id":"CVE-2019-10757","description":"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.","status":"published","published":"2019-10-08T20:15:11.73Z","modified":"2026-06-17T02:11:36.813Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:05:31.019577Z"}],"osv":[{"id":"CVE-2019-10757","description":"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.","status":"published","published":"2019-10-08T20:15:11.73Z","modified":"2026-10-24T10:30:37.657810165Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:10.383287Z"},{"id":"GHSA-58v4-qwx5-7f59","title":"SQL Injection in knex","description":"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.","status":"published","published":"2019-10-21T16:12:13Z","modified":"2026-09-10T03:48:26.577716752Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:38.213481Z"}]}}
