Code Injection Vulnerability in Protobuf.js Command Line Tool
CVE-2026-54271
8.2HIGH
What is CVE-2026-54271?
The protobufjs-cli, a command line interface for protobuf.js, has a vulnerability due to incomplete fixes for unsafe name handling in static module code generation. Versions before 1.3.2 and 2.5.0 can generate unsafe JavaScript output from specially crafted JSON descriptors, allowing an attacker to inject harmful code that may execute when the generated file is invoked. It is crucial for developers and users to upgrade to the fixed versions to mitigate this risk.
Affected Version(s)
protobufjs-cli < 1.3.2 < 1.3.2
protobufjs-cli >= 2.0.0, < 2.4.2 < 2.0.0, 2.4.2
