Skip to content
OpenAdvisories
High · 8.7 CVE-2026-44295 EUVD-2026-30033GHSA-6r35-46g8-jcw9

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

Published May 13, 2026 · Updated May 13, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
protobufjs protobuf.js >= 2.0.0, < 2.0.2, < 1.2.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling vitess-23 23.0.4-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm protobufjs-cli < 1.2.1 1.2.1 GHSA-6r35-46g8-jcw9
npm protobufjs-cli >= 2.0.0, < 2.0.2 2.0.2 GHSA-6r35-46g8-jcw9

References