Vulnerabilities/

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

Severity:
High

Description

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.

Recommendation

Update the protobufjs-cli package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
protobufjs-cli
Anything's wrong? Let us know Last updated on May 14, 2026