{"answers":{"affected":"2 open source packages ship an affected version, including @siteboon/claude-code-ui. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31861 exists.","fix":"Upgrade @siteboon/claude-code-ui to 1.24.0 or later.","what":"CVE-2026-31861 is a high-severity command injection vulnerability in siteboon claudecodeui, published on 11 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-31861 and fix it if it is affected.\n\nWhat it is: CVE-2026-31861 is a high-severity command injection vulnerability in siteboon claudecodeui, published on 11 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31861 exists.\n\nAffected packages and fixed versions:\n- @siteboon/claude-code-ui (npm): affected all versions; fixed in 1.24.0\n- @siteboon/claude-code-ui (npm): affected all versions; fixed in 1.24.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-31861/ (Markdown: https://insights.sbomify.com/CVE-2026-31861/index.md)","id":"CVE-2026-31861","markdown":"https://insights.sbomify.com/CVE-2026-31861/index.md","name":"CVE-2026-31861","record":{"aliases":["GHSA-7fv4-fmmc-86g2"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Claude Code UI","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary OS commands via the git configuration endpoint due to insufficient input sanitization in shell command construction.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cloud_cli","vendor":"cloudcli"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Cloud CLI (aka Claude Code UI) is a desktop and mobile UI for Claude Code, Cursor CLI, Codex, and Gemini-CLI. Prior to 1.24.0, The /api/user/git-config endpoint constructs shell commands by interpolating user-supplied gitName and gitEmail values into command strings passed to child_process.exec(). The input is placed within double quotes and only \" is escaped, but backticks (`), $() command substitution, and \\ sequences are all interpreted within double-quoted strings in bash. This allows authenticated attackers to execute arbitrary OS commands via the git configuration endpoint. This vulnerability is fixed in 1.24.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Shell Command Injection in Git Routes [CloudCLI UI]","id":"CVE-2026-31861","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Cloud CLI has Command Injection via Multiple Parameters","id":"CVE-2026-31862"},"packages":[{"ecosystem":"npm","fixed":["1.24.0"],"introduced":["0"],"last_affected":[],"package":"@siteboon/claude-code-ui","purl":null,"source":"GHSA-7fv4-fmmc-86g2"},{"ecosystem":"npm","fixed":["1.24.0"],"introduced":["0"],"last_affected":[],"package":"@siteboon/claude-code-ui","purl":"pkg:npm/%40siteboon/claude-code-ui","source":"GHSA-7fv4-fmmc-86g2"}],"prev":{"headline":"Unhead has a XSS bypass in `useHeadSafe` via attribute name injection and case-sensitive protocol check","id":"CVE-2026-31860"},"products":["claudecodeui"],"published":"2026-03-11","related":[{"cvss_score":9.1,"headline":"Cloud CLI has Command Injection via Multiple Parameters","id":"CVE-2026-31862","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":8.7,"headline":"Cloud CLI WebSocket shell injection","id":"CVE-2026-31975","kev_date_added":null,"published":"2026-03-11"}],"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-12","vendors":["siteboon"]},"summary":"Authenticated attackers can execute arbitrary OS commands via the git configuration endpoint due to insufficient input sanitization in shell command construction.","url":"https://insights.sbomify.com/CVE-2026-31861/"}