{"cve":"CVE-2026-54271","nvd":{"published":"2026-06-22T18:16:45.610","modified":"2026-10-25T23:10:00.167","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L","score":8.2},"cwes":["CWE-94"],"references":["https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-pr59-h9ph-3fr8"],"products":["protobufjs_project:protobufjs-cli"],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-54271","score":0.00303,"percentile":0.22781,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-pr59-h9ph-3fr8","url":"https://osv.dev/vulnerability/GHSA-pr59-h9ph-3fr8","summary":"protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names","modified":"2026-09-10T03:50:50.091968588Z","packages":[{"ecosystem":"npm","name":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","ranges":["<1.3.2"],"fixed":["1.3.2"]},{"ecosystem":"npm","name":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","ranges":[">=2.0.0 <2.5.0"],"fixed":["2.5.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}