Unrated severityNVD Advisory· Published Dec 2, 2026
pg-protocol through 1.16.1 NUL Byte Injection via StartupMessage Parameters
CVE-2026-142201
Description
pg-protocol through 1.16.1 (node-postgres pg through 8.23.1) contains a NUL byte injection vulnerability in the startup() serializer that allows attackers to add server parameters. Attackers who influence connection values like application_name or database can inject search_path or a second database key to change the session's database or schema resolution.
Patches
Vulnerability mechanics
References
4- www.vulncheck.com/advisories/pg-protocol-through-1.16.1-nul-byte-injection-via-startupmessage-parametersmitrethird-party-advisory
- github.com/brianc/node-postgres/blob/0980cefebe0ae461da8883703be049fe13ca96cf/packages/pg-protocol/src/buffer-writer.tsmitretechnical-description
- github.com/brianc/node-postgres/blob/0980cefebe0ae461da8883703be049fe13ca96cf/packages/pg-protocol/src/serializer.tsmitretechnical-description
- github.com/brianc/node-postgres/blob/0980cefebe0ae461da8883703be049fe13ca96cf/packages/pg/lib/client.jsmitretechnical-description
News mentions
0No linked articles in our index yet.