Description
A remote code execution vulnerability was found within the pg module when the remote database or query specifies a specially crafted column name. There are 2 likely scenarios in which one would likely be vulnerable. 1) Executing unsafe, user-supplied sql which contains a malicious column name. 2) Connecting to an untrusted database and executing a query which returns results where any of the column names are malicious.
Remediation
References
https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability
https://nodesecurity.io/advisories/521
Related Vulnerabilities
CVE-2023-6886 Vulnerability in maven package com.xnx3.wangmarket:wangmarket
CVE-2018-3721 Vulnerability in maven package org.webjars.npm:lodash.mergewith
CVE-2023-37895 Vulnerability in maven package org.apache.jackrabbit:jackrabbit-webapp
CVE-2020-36188 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2023-36542 Vulnerability in maven package org.apache.nifi:nifi-hbase_2-client-service