{ "schema_version": "1.4.0", "id": "GHSA-xqh8-5j36-4556", "modified": "2022-06-15T18:39:04Z", "published": "2019-08-26T16:59:45Z", "aliases": [ "CVE-2019-15658" ], "summary": "SQL Injection in connect-pg-simple", "details": "### Impact\nAn unlikely SQL injection if the case of an unsanitized table name input.\n\n### Patches\nThe user should upgrade to `6.0.1`. Due to its low impact a backport has not been made to the `5.x` branch.\n\n### Workarounds\nIf 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.\n\n### References\n* [Security issue disclosure](https://github.com/voxpelli/node-connect-pg-simple/issues/151)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [voxpelli/node-connect-pg-simple](https://github.com/voxpelli/node-connect-pg-simple)\n* Email maintainer at [pelle@kodfabrik.se](mailto:pelle@kodfabrik.se)\n", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "connect-pg-simple" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "6.0.1" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/voxpelli/node-connect-pg-simple/security/advisories/GHSA-xqh8-5j36-4556" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-15658" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-xqh8-5j36-4556" }, { "type": "PACKAGE", "url": "https://github.com/voxpelli/node-connect-pg-simple" }, { "type": "WEB", "url": "https://snyk.io/vuln/SNYK-JS-CONNECTPGSIMPLE-460154" }, { "type": "WEB", "url": "https://www.npmjs.com/advisories/1153" } ], "database_specific": { "cwe_ids": [ "CWE-89" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2020-06-16T22:04:11Z", "nvd_published_at": null } }