PT-2026-40541 · Npm · Protobufjs-Cli

Published

2026-05-12

·

Updated

2026-06-24

·

CVE-2026-44295

CVSS v3.1

8.7

High

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions protobufjs-cli versions prior to 1.2.1 protobufjs-cli versions prior to 2.0.2
Description Static code generation via pbjs can 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 may be written into the output without sufficient sanitization. An attacker who influences the schemas passed to pbjs can cause the generated JavaScript to contain attacker-controlled code, which executes if the generated file is later imported or executed by the application or build process.
Recommendations Update to version 1.2.1. Update to version 2.0.2. Avoid running static code generation on untrusted schemas or descriptors. Validate schema names before code generation and run the process in an isolated environment if untrusted schemas must be accepted.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-44295
GHSA-6R35-46G8-JCW9

Affected Products

Protobufjs-Cli