CVE-2026-54271
HighCVSS 8.2Exploitation Probability (EPSS)
Low risk15th percentile — higher than 15% of all known CVEs
Summary
In protobufjs-cli, prior to versions 1.3.2 and 2.5.0, there was an incomplete fix for unsafe name handling in static code generation. Affected versions could emit unsafe JavaScript references when generating static output from crafted JSON descriptor input.
Risk Assessment
An attacker who can provide or influence pre-parsed JSON descriptors may cause the generated JavaScript output to contain attacker-controlled code. This injected code may execute if the generated file is later executed or imported.
Recommendation
It is recommended to update protobufjs-cli to versions 1.3.2 or 2.5.0 to mitigate this vulnerability. Additionally, review and secure the code generation processes to prevent injection of malicious code.
Original NVD description (English source)
protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.3.2 and 2.5.0, a previous fix for unsafe name handling in pbjs static / static-module code generation was incomplete. Affected versions of protobufjs-cli could still emit unsafe JavaScript references when generating static output from crafted JSON descriptor input. The common case of parsing schemas from .proto files is not affected. This is a bypass of CVE-2026-44295. An attacker who can provide or influence pre-parsed JSON descriptors passed to pbjs static code generation may be able to cause generated JavaScript output to contain attacker-controlled code. The injected code may execute if the generated file is later executed or imported and an affected generated API path is invoked. This vulnerability is fixed in 1.3.2 and 2.5.0.

