Improper Neutralization of Null Byte or NUL Character Affecting pg-protocol package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-PGPROTOCOL-23400642
  • published3 Dec 2026
  • disclosed2 Dec 2026
  • creditZachariah Mithani

Introduced: 2 Dec 2026

NewCVE-2026-142201  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

There is no fixed version for pg-protocol.

Overview

pg-protocol is a The postgres client/server binary protocol, implemented in TypeScript

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character in the startup function of the StartupMessage serializer. An attacker who can influence a connection parameter value, such as database, application_name, or options, can embed a NUL byte in it to split the parameter's value early, shifting the parsing of every subsequent key and value pair and effectively injecting an attacker-chosen server parameter such as search_path. This requires the calling application to pass that attacker-influenced value into a connection parameter without stripping NUL bytes first, a pattern seen in multi-tenant setups that select the database per request or set application_name from user-supplied data.

CVSS Base Scores

version 4.0
version 3.1