CVE-2019-15658: SQL Injection in connect-pg-simple

connect-pg-simple Updated 02 Oct 2025

Summary

26/08/2019
Yes i
High
7.3

CVE-2019-15658: SQL Injection in connect-pg-simple. Affects connect-pg-simple versions < 6.0.1. Fixed in 6.0.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

connect-pg-simple is an npm package that provides session storage for the connect/express framework using PostgreSQL. It allows users to store session data in a PostgreSQL database. This vulnerability affects versions prior to 6.0.1.

Vulnerability Detail

The vulnerability in connect-pg-simple is an SQL injection that occurs when unsanitized table or schema names are used as input. This can lead to unauthorized access or modification of the database. The impact of this vulnerability is considered low, but it is still important to upgrade to version 6.0.1 to mitigate the risk.

How To Fix

Minimum fixed version

6.0.1

This is the first release that contains the fix.

npm install connect-pg-simple@6.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If it is not possible to immediately upgrade to version 6.0.1, a workaround is to sanitize and escape the input for the tableName and schemaName options before passing them to the constructor. However, it is important to note that this workaround should be removed once the package is updated to version 6.0.1 or later to avoid double escaping.

Conclusion

In conclusion, the SQL injection vulnerability in connect-pg-simple can be mitigated by upgrading to version 6.0.1. If immediate upgrade is not possible, sanitizing and escaping the input can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for connect-pg-simple →

Share this vulnerability

FAQ

connect-pg-simple is an npm package that provides session storage for the connect/express framework using PostgreSQL.

The impact of this vulnerability is considered low, but it can lead to unauthorized access or modification of the database.

To fix this vulnerability, you should upgrade to version 6.0.1 of connect-pg-simple.

Yes, if you cannot immediately upgrade, you can sanitize and escape the input for the affected options.

You can find more information in the security issue disclosure on the GitHub repository.

How To Fix

Minimum fixed version

6.0.1

This is the first release that contains the fix.

npm install connect-pg-simple@6.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback