{"answers":{"affected":"2 open source packages ship an affected version, including shell-quote.","exploited":"There is no known exploitation of CVE-2026-102422 in the wild and no public exploit code.","fix":"Upgrade shell-quote to 1.11.0 or later.","what":"CVE-2026-102422 is a critical command injection vulnerability in shell-quote, published on 29 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-102422 and fix it if it is affected.\n\nWhat it is: CVE-2026-102422 is a critical command injection vulnerability in shell-quote, published on 29 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-102422 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shell-quote (npm): affected from 1.8.4; fixed in 1.11.0\n- shell-quote (npm): affected from 1.8.4; fixed in 1.11.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-102422/ (Markdown: https://insights.sbomify.com/CVE-2026-102422/index.md)","id":"CVE-2026-102422","markdown":"https://insights.sbomify.com/CVE-2026-102422/index.md","name":"CVE-2026-102422","record":{"aliases":["CLEANSTART-2026-SW67186","CLEANSTART-2026-VG90547","CLSA-2026-1790673243","DEBIAN-CVE-2026-102422","ECHO-e4ca-6368-1428","GHSA-pqg4-j6r4-53mv","MINI-38cr-c3p8-9rf3","MINI-q5xv-qcqf-8rc3","MINI-xq7g-7rq4-vf6p","MINI-xqm9-8jg8-5r93","RHSA-2026:69544","ROOT-APP-NPM-CVE-2026-102422","UBUNTU-CVE-2026-102422"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript shell quoting library","requires_auth":"none","summary":"Attackers can execute arbitrary shell commands by injecting line terminators into strings following comment tokens in shell-quote's quote() function.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"harborist","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\\n, \\r, U+2028, U+2029) in that later string therefore ends the comment, and the rest of the string is parsed as shell input: `quote(['echo', 'ok', { comment: 'x' }, 'a\\nid;#'])` runs `id` in sh, bash, dash, ksh and zsh. `parse()` emits a comment token for a `#` in the middle of a word (for example `http://example.com/#frag`), so callers that combine `parse()` output with another untrusted string, such as `quote(parse(untrustedCommand).concat(untrustedArg))`, are affected. The fix for CVE-2026-9277 rejected line terminators in the comment's own text, but not in the tokens after it. Fixed in 1.11.0: `quote()` throws a `TypeError` when a string after a `{ comment }` token contains a line terminator.","ecosystems":["Red Hat:hummingbird:1","npm"],"exploits":{"exploitdb":0,"first_seen":"2026-10-07","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-07T05:53:12Z","kind":"github_poc","ref":"https://github.com/DevVaibhav07/CVE-2026-102422","stars":0,"title":"CVE-2026-102422 POC"}],"tier":"poc_unverified"},"has_fix":true,"headline":"shell-quote `quote()` command injection via a line terminator in a token after a `{ comment }` token","id":"CVE-2026-102422","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Path traversal in Balbooa Forms extension for Joomla","id":"CVE-2026-102424"},"packages":[{"ecosystem":"npm","fixed":["1.11.0"],"introduced":["1.8.4"],"last_affected":[],"package":"shell-quote","purl":null,"source":"GHSA-pqg4-j6r4-53mv"},{"ecosystem":"npm","fixed":["1.11.0"],"introduced":["1.8.4"],"last_affected":[],"package":"shell-quote","purl":"pkg:npm/shell-quote","source":"GHSA-pqg4-j6r4-53mv"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.20.0-0.11.hum1"],"introduced":["0"],"last_affected":[],"package":"jaeger","purl":"pkg:rpm/redhat/jaeger","source":"RHSA-2026:69544"}],"prev":{"headline":"pbkdf2 rehashes long passwords on every iteration, enabling denial of service","id":"CVE-2026-102414"},"products":["shell-quote"],"published":"2026-09-29","related":[],"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-30","vendors":[]},"summary":"Attackers can execute arbitrary shell commands by injecting line terminators into strings following comment tokens in shell-quote's quote() function.","url":"https://insights.sbomify.com/CVE-2026-102422/"}