{"id":"CVE-2026-54271","published":"2026-06-22T16:16:05Z","modified":"2026-06-23T13:49:08Z","title":"protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names","vendor":"protobufjs","product":"protobufjs-cli","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00303,"percentile":0.23592,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-pr59-h9ph-3fr8","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":4.72},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"protobufjs","affectedVersions":[{"vendor":"protobufjs","product":"protobufjs-cli","versions":["< 1.3.2",">= 2.0.0, < 2.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-23T13:48:57.561501Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"protobufjs-cli","vulnerableRanges":["<1.3.2",">=2.0.0, <2.5.0"],"patched":["1.3.2","2.5.0"],"from":["GHSA-pr59-h9ph-3fr8"],"provenance":"source"}],"summary":{"text":"protobufjs-cli, the command line add-on for protobuf.js, can emit unsafe JavaScript references in its pbjs static code generation when processing crafted JSON descriptor input, because an earlier name-handling fix in affected versions was incomplete. An attacker who can supply or influence pre-parsed JSON descriptors passed to pbjs static generation, and whose generated file is later executed or imported with an affected API path invoked, could get attacker-controlled code into that output, with user interaction required and the common .proto parsing path unaffected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:24Z"},"euvd":{"id":"EUVD-2026-38304","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-protobufjs-protobuf-js-cve-2026-44295","parents":[{"from":"CVE-2026-44295","to":"CVE-2026-54271","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"This is a bypass of CVE-2026-44295.","from":"CVE.org","in":"CVE-2026-54271"},{"kind":"version-step","provenance":"source","package":"npm:protobufjs-cli","fromFixed":"1.2.1","toFixed":"1.3.2","daysApart":40},{"kind":"version-step","provenance":"source","package":"npm:protobufjs-cli","fromFixed":"2.0.2","toFixed":"2.5.0","daysApart":40},{"kind":"similar","provenance":"machine","score":0.62,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-42290","published":"2026-05-13","fixed":"2.0.2","kev":false},{"cve":"CVE-2026-44295","published":"2026-05-13","fixed":"2.0.2","kev":false},{"cve":"CVE-2026-54271","published":"2026-06-22","fixed":"2.5.0","kev":false},{"cve":"CVE-2026-54269","published":"2026-06-22","fixed":"2.5.1","kev":false,"link":{"from":"CVE-2026-54271","to":"CVE-2026-54269","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:protobufjs-cli","fromFixed":"1.3.2","toFixed":"1.3.3","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:protobufjs-cli","fromFixed":"2.5.0","toFixed":"2.5.1","daysApart":0},{"kind":"similar","provenance":"machine","score":0.27,"basis":"same package + description similarity"}]}}],"package":"npm:protobufjs-cli"}}