Vulnerability · Published May 13, 2026 · Assigned by GitHub_M

CVE-2026-44295protobufjs-cli: Code injection in pbjs static output from crafted schema names

High 8.7

In plain English

A high-severity code injection in protobuf.js from protobufjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.7High
Exploit odds (30 days)0.4%top 66.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.2.1 and 2.0.2, pbjs static code generation could emit unsafe JavaScript identifiers derived from schema-controlled names. When generating static JavaScript from a crafted schema or JSON descriptor, certain namespace, enum, service, or derived full names could be written into the generated output without sufficient sanitization. This vulnerability is fixed in 1.2.1 and 2.0.2.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmprotobufjs-cli1.2.1GHSA-6r35-46g8-jcw9
npmprotobufjs-cli2.0.2GHSA-6r35-46g8-jcw9

Affected products (as reported)

VendorProductVersions
protobufjs protobuf.js >= 2.0.0, < 2.0.2< 1.2.1

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

References