# CVE-2026-54271: protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names

- Priority: **Routine**
- Reason: Not severe (CVSS 8.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-23
- Aliases: CGA-3v4q-62q5-rq4x, CGA-42cq-cf2x-qcc6, CGA-ch3j-4q48-xrpp, GHSA-pr59-h9ph-3fr8, CGA-6p4v-3f5r-h2r2, CGA-8q9r-6ww9-x3pv
- Record: https://cvemate.com/vulnerability/CVE-2026-54271 · JSON: https://cvemate.com/vulnerability/CVE-2026-54271/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L
- EPSS: 0.29%, percentile 23.176%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard vitess-22 (Chainguard): All versions (No fix recorded)
- chainguard vitess-24 (Chainguard): \< 24.0.1-r4
- chainguard vitess-24-compat (Chainguard): \< 24.0.3-r7
- wolfi vitess-24 (Wolfi): \< 24.0.1-r4
- wolfi vitess-24-compat (Wolfi): \< 24.0.3-r7
- Npm protobufjs-cli (Npm): \< 1.3.2 \| ≥ 2.0.0, \< 2.5.0
- protobufjs\_project protobufjs-cli: \< 1.3.2 \| ≥ 2.0.0, \< 2.5.0
- protobufjs protobufjs-cli: \< 1.3.2 \| ≥ 2.0.0, \< 2.4.2

## References

- <https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-pr59-h9ph-3fr8>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54271.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54271>
- <https://github.com/protobufjs/protobuf.js>

---

Data as of 2026-12-05T03:44:36.592Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
