NetSight
high8.7

CVE-2026-44295

protobuf.js: Code injection in pbjs static output from crafted schema names

Impact

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

EcosystemPackageAffectedFixed in
npmprotobufjs-cli<= 1.2.01.2.1

Affected products

VendorProductAffected versions
Protobufjs ProjectProtobufjs-Cli
before 1.2.1
from 2.0.0 before 2.0.2

Weakness classification

References