{"answers":{"affected":"4 open source packages ship an affected version, including protobufjs-cli. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-54271 in the wild and no public exploit code.","fix":"Upgrade protobufjs-cli to a fixed version for your release line: 1.3.2 or 2.5.0.","what":"CVE-2026-54271 is a high-severity code injection vulnerability in protobufjs-cli, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54271 and fix it if it is affected.\n\nWhat it is: CVE-2026-54271 is a high-severity code injection vulnerability in protobufjs-cli, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-54271 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- protobufjs-cli (npm): affected all versions; fixed in 1.3.2\n- protobufjs-cli (npm): affected all versions; fixed in 1.3.2\n- protobufjs-cli (npm): affected from 2.0.0; fixed in 2.5.0\n- protobufjs-cli (npm): affected from 2.0.0; fixed in 2.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54271/ (Markdown: https://insights.sbomify.com/CVE-2026-54271/index.md)","id":"CVE-2026-54271","markdown":"https://insights.sbomify.com/CVE-2026-54271/index.md","name":"CVE-2026-54271","record":{"aliases":["CLEANSTART-2026-QX07300","GHSA-pr59-h9ph-3fr8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"protobufjs CLI tool","requires_auth":"none","summary":"Attackers can inject malicious code into generated JavaScript files via crafted JSON descriptors, leading to execution when the output is used.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"protobufjs-cli","vendor":"protobufjs_project"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names","id":"CVE-2026-54271","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"ip-address: Misclassification of IPv4-mapped/NAT64 IPv6 addresses can bypass SSRF and trust-boundary checks","id":"CVE-2026-54272"},"packages":[{"ecosystem":"npm","fixed":["1.3.2"],"introduced":["0"],"last_affected":[],"package":"protobufjs-cli","purl":null,"source":"GHSA-pr59-h9ph-3fr8"},{"ecosystem":"npm","fixed":["1.3.2"],"introduced":["0"],"last_affected":[],"package":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","source":"GHSA-pr59-h9ph-3fr8"},{"ecosystem":"npm","fixed":["2.5.0"],"introduced":["2.0.0"],"last_affected":[],"package":"protobufjs-cli","purl":null,"source":"GHSA-pr59-h9ph-3fr8"},{"ecosystem":"npm","fixed":["2.5.0"],"introduced":["2.0.0"],"last_affected":[],"package":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","source":"GHSA-pr59-h9ph-3fr8"}],"prev":{"headline":"protobufjs: Memory amplification from preserved unknown fields in binary decode","id":"CVE-2026-54270"},"products":["protobufjs-cli"],"published":"2026-06-22","related":[{"cvss_score":8.7,"headline":"protobufjs-cli: Code injection in pbjs static output from crafted schema names","id":"CVE-2026-44295","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":7.8,"headline":"protobufjs-cli: OS Command Injection","id":"CVE-2026-42290","kev_date_added":null,"published":"2026-05-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["protobufjs"]},"summary":"Attackers can inject malicious code into generated JavaScript files via crafted JSON descriptors, leading to execution when the output is used.","url":"https://insights.sbomify.com/CVE-2026-54271/"}