CVE-2026-54271Protobufjs Project Protobufjs-cli
High 8.2 No auth needed
Follow: this CVE · Protobufjs Project · Protobufjs Project Protobufjs-cli We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- Jun 22, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for Protobufjs-cli.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | protobufjs-cli |
< 1.3.2 |
1.3.2 |
npm install protobufjs-cli@1.3.2 |
| npm | protobufjs-cli |
≥ 2.0.0 < 2.5.0 |
2.5.0 |
npm install protobufjs-cli@2.5.0 |
Per OSV / GitHub Advisories (GHSA-pr59-h9ph-3fr8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| protobufjs_project | protobufjs-cli | < 1.3.2 |
| protobufjs_project | protobufjs-cli | ≥ 2.0.0 < 2.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Vendor Advisory