Advisory

GHSA-58v4-qwx5-7f59

Also known as: CVE-2019-10757, SNYK-JS-KNEX-471962

Summary

SQL Injection in knex

Details

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

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-10-21 16:12 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

knex

npm · All systems

Affected

  • introduced 0, fixed 0.19.5 (semver)

Fixed versions

0.19.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences