CVE-2026-142201: pg-protocol through 1.16.1 NUL Byte Injection via StartupMessage Parameters
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 applicationname or database can inject searchpath or a second database key to change the session's database or schema resolution.
Affected Software
Event History
Frequently Asked Questions
What attacker control is needed to exploit this issue?
An attacker must be able to influence PostgreSQL connection values such as application_name or database. Those values can be used to inject additional startup parameters.
What can an attacker change through a successful injection?
They can add server parameters such as search_path or a second database key. This can alter the session's schema resolution or cause the session to use a different database.
Which packages and versions are identified as affected?
The issue affects pg-protocol through 1.16.1 and node-postgres pg through 8.23.1.