SQL Injection Affecting connect-pg-simple package, versions <6.0.1
Threat Intelligence
EPSS
0.08% (35th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-CONNECTPGSIMPLE-460154
- published 27 Aug 2019
- disclosed 21 Aug 2019
- credit Robert Nilsson
Introduced: 21 Aug 2019
CVE-2019-15658 Open this link in a new tabHow to fix?
Upgrade connect-pg-simple
to version 6.0.1 or higher.
Overview
connect-pg-simple is a minimal PostgreSQL session store for Express/Connect.
Affected versions of this package are vulnerable to SQL Injection within PGStore.prototype.quotedTable
function where user input is wrapped using double quotes. If the schemaName is set to 'web".session WHERE $1=$1;--
, it is possible to wipe the web.session table every time the prune process runs.
References
CVSS Scores
version 3.1