{"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-42290 in the wild and no public exploit code.","fix":"Upgrade protobufjs-cli to a fixed version for your release line: 1.2.1 or 2.0.2.","what":"CVE-2026-42290 is a high-severity command injection vulnerability in protobufjs protobuf.js, published on 13 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42290 and fix it if it is affected.\n\nWhat it is: CVE-2026-42290 is a high-severity command injection vulnerability in protobufjs protobuf.js, published on 13 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-42290 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- protobufjs-cli (npm): affected all versions; fixed in 1.2.1\n- protobufjs-cli (npm): affected all versions; fixed in 1.2.1\n- protobufjs-cli (npm): affected from 2.0.0; fixed in 2.0.2\n- protobufjs-cli (npm): affected from 2.0.0; fixed in 2.0.2\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-42290/ (Markdown: https://insights.sbomify.com/CVE-2026-42290/index.md)","id":"CVE-2026-42290","markdown":"https://insights.sbomify.com/CVE-2026-42290/index.md","name":"CVE-2026-42290","record":{"aliases":["GHSA-f84p-cvgm-xgjj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"protobufjs CLI tool","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via shell metacharacters in file paths when using the protobufjs-cli tool to generate TypeScript definitions.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"protobufjs-cli","vendor":"protobufjs_project"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.2.1 and 2.0.2, pbts invoked JSDoc by building a shell command string from input file paths and executing it through child_process.exec. File paths containing shell metacharacters could therefore be interpreted by the shell instead of being passed to JSDoc as plain arguments. This vulnerability is fixed in 1.2.1 and 2.0.2.","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: OS Command Injection","id":"CVE-2026-42290","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"SysReptor: Read-write access to personal notes by sharing-link creation with no authorization in SysReptor Professional","id":"CVE-2026-42291"},"packages":[{"ecosystem":"npm","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"protobufjs-cli","purl":null,"source":"GHSA-f84p-cvgm-xgjj"},{"ecosystem":"npm","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","source":"GHSA-f84p-cvgm-xgjj"},{"ecosystem":"npm","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"protobufjs-cli","purl":null,"source":"GHSA-f84p-cvgm-xgjj"},{"ecosystem":"npm","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","source":"GHSA-f84p-cvgm-xgjj"}],"prev":{"headline":"ChurchCRM: Cross-Site Request Forgery (CSRF) Leading to Admin Privilege Escalation","id":"CVE-2026-42289"},"products":["protobuf.js"],"published":"2026-05-13","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":8.2,"headline":"protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names","id":"CVE-2026-54271","kev_date_added":null,"published":"2026-06-22"}],"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-05-18","vendors":["protobufjs"]},"summary":"Attackers can execute arbitrary OS commands via shell metacharacters in file paths when using the protobufjs-cli tool to generate TypeScript definitions.","url":"https://insights.sbomify.com/CVE-2026-42290/"}