npm
CVE-2026-142201
pg-protocol through 1.16.1 NUL Byte Injection via StartupMessage Parameters
- Severity
- Medium 6.3
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Weakness
- Null byte injection (CWE-158)
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
pg-protocolnpm · osv:npm:pg-protocol |
|
About pg-protocol
- Weekly downloads (npm)
- 113,764,016npm, 2 Dec 2026
This is the only vulnerability in pg-protocol in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142201