{"answers":{"affected":"2 open source packages ship an affected version, including claude-code-templates.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73222 exists.","fix":"Upgrade claude-code-templates to 1.29.4 or later.","what":"CVE-2026-73222 is a high-severity command injection vulnerability in davila7 claude-code-templates, published on 11 Aug 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-73222 and fix it if it is affected.\n\nWhat it is: CVE-2026-73222 is a high-severity command injection vulnerability in davila7 claude-code-templates, published on 11 Aug 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73222 exists.\n\nAffected packages and fixed versions:\n- claude-code-templates (npm): affected all versions; fixed in 1.29.4\n- claude-code-templates (npm): affected all versions; fixed in 1.29.4\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-73222/ (Markdown: https://insights.sbomify.com/CVE-2026-73222/index.md)","id":"CVE-2026-73222","markdown":"https://insights.sbomify.com/CVE-2026-73222/index.md","name":"CVE-2026-73222","record":{"aliases":["GHSA-79wm-x847-7cvg"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Claude Code Templates CLI","requires_auth":"none","summary":"Unauthenticated OS command injection in Claude Code Studio server allows arbitrary code execution via crafted API requests, compromising developer systems.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/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"},{"id":"CWE-352","name":"Cross-Site Request Forgery"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"description":"Claude Code Templates is a CLI tool for configuring and monitoring Claude Code. Prior to 1.29.4, the Claude Code Studio server launched by the --studio option in cli-tool/src/sandbox-server.js binds to all interfaces on port 3444, permits cross-origin requests, and requires no authentication. The POST /api/execute endpoint passes the prompt request-body field to executeLocalTask(), and POST /api/install-agent passes the agentName request-body field to a child process. The same unsafe agent field path is reachable from /api/execute through checkAndInstallAgent(). These attacker-controlled values reach child_process.spawn() with shell execution enabled, causing Node.js to construct a shell command in which metacharacters are interpreted. An attacker who can reach the port directly, or who convinces a developer running Studio to visit a malicious website, can execute arbitrary operating-system commands with the developer's privileges and compromise source code, credentials, and local data. This issue is fixed in version 1.29.4.","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":"Claude Code Templates: Unauthenticated OS command injection (RCE) in Claude Code Studio server (--studio)","id":"CVE-2026-73222","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":"electerm: Path traversal in editWithSystemEditor temp file path via unsanitized SFTP filename","id":"CVE-2026-73223"},"packages":[{"ecosystem":"npm","fixed":["1.29.4"],"introduced":["0"],"last_affected":[],"package":"claude-code-templates","purl":null,"source":"GHSA-79wm-x847-7cvg"},{"ecosystem":"npm","fixed":["1.29.4"],"introduced":["0"],"last_affected":[],"package":"claude-code-templates","purl":"pkg:npm/claude-code-templates","source":"GHSA-79wm-x847-7cvg"}],"prev":{"headline":"CVAT: Flawed authorization logic in endpoints related to lambda requests","id":"CVE-2026-73221"},"products":["claude-code-templates"],"published":"2026-08-11","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["davila7"]},"summary":"Unauthenticated OS command injection in Claude Code Studio server allows arbitrary code execution via crafted API requests, compromising developer systems.","url":"https://insights.sbomify.com/CVE-2026-73222/"}