Advisory

GHSA-xqh8-5j36-4556

Also known as: CVE-2019-15658

Summary

SQL Injection in connect-pg-simple

Details

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

For more information
If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-08-26 16:59 UTC
Modified
2026-07-08 06:00 UTC

Affected packages and fixes

connect-pg-simple

npm · All systems

Affected

  • introduced 0, fixed 6.0.1 (semver)

Fixed versions

6.0.1

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