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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-06-15T20:13:54.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-pr59-h9ph-3fr8
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- protobufjs protobufjs-cli: < 1.3.2; >= 2.0.0, < 2.4.2
- protobufjs-cli (npm): before 1.3.2; from 2.0.0 before 2.5.0
- protobufjs_project protobufjs-cli: before 1.3.2; from 2.0.0 before 2.5.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L`

## References

- <https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-pr59-h9ph-3fr8> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54271> (advisory)
- <https://github.com/protobufjs/protobuf.js> (package)

## Sources

- CVE List: [CVE-2026-54271](https://www.cve.org/CVERecord?id=CVE-2026-54271), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-pr59-h9ph-3fr8](https://github.com/advisories/GHSA-pr59-h9ph-3fr8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54271](https://nvd.nist.gov/vuln/detail/CVE-2026-54271), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54271 · Whole record: https://cve.day/CVE-2026-54271.json · Rebuilt by cve.day 2026-11-25T22:59:25.393Z
