CVE-2026-142201: pg-protocol through 1.16.1 NUL Byte Injection via StartupMessage Parameters

Published Dec 2, 2026
·
Updated

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

2 affected components
npm/pg-protocol<=1.16.1
npm/pg<=8.23.1

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203