GitHub Advisoryadvisory · npm

GHSA-xqh8-5j36-4556 SQL Injection in connect-pg-simple

HIGH Published 2019-08-26 Modified 2022-06-15 Official page ↗
Aliases
CVE-2019-15658
Ecosystem
npm
Packages
connect-pg-simple
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-89
Reviewed
2020-06-16

Affected packages

• npm connect-pg-simple: < 6.0.1 → fixed in 6.0.1

Description

Impact An unlikely SQL injection if the case of an unsanitized table name input. Patches The user should upgrade to `6.0.1`. Due to its low impact a backport has not been made to the `5.x` branch. Workarounds If there is no likelihood that the `tableName` or `schemaName` options sent to the constructor could be of an unsanitized nature, then no workaround is needed. Else the input could be sanitized and escaped before sending it in. Take note though that such an escaping would need to be removed when upgrading to `6.0.1` or later, to avoid double escaping. References • Security issue disclosure For more information If you have any questions or comments about this advisory: • Open an issue in voxpelli/node-connect-pg-simple • Email maintainer at [email protected]

Related

Alias · CVE (1)

  • CVE-2019-15658 connect-pg-simple before 6.0.1 allows SQL injection if tableName or schemaName is untrusted data. vulnerability

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References