{"answers":{"affected":"2 open source packages ship an affected version, including safeinstall-cli.","exploited":"There is no known exploitation of GHSA-xrmc-c5cg-rv7x in the wild and no public exploit code.","fix":"Upgrade safeinstall-cli to 0.10.2 or later.","what":"GHSA-xrmc-c5cg-rv7x is a vulnerability in safeinstall-cli, published on 10 Jul 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 GHSA-xrmc-c5cg-rv7x and fix it if it is affected.\n\nWhat it is: GHSA-xrmc-c5cg-rv7x is a vulnerability in safeinstall-cli, published on 10 Jul 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 GHSA-xrmc-c5cg-rv7x in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- safeinstall-cli (npm): affected all versions; fixed in 0.10.2\n- safeinstall-cli (npm): affected all versions; fixed in 0.10.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/GHSA-xrmc-c5cg-rv7x/ (Markdown: https://insights.sbomify.com/GHSA-xrmc-c5cg-rv7x/index.md)","id":"GHSA-xrmc-c5cg-rv7x","markdown":"https://insights.sbomify.com/GHSA-xrmc-c5cg-rv7x/index.md","name":"GHSA-xrmc-c5cg-rv7x","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"SafeInstall CLI","requires_auth":"none","summary":"Attackers can bypass SafeInstall guard checks via crafted shell commands, allowing malicious package execution with developer permissions.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nSafeInstall CLI through 0.10.1 can fail to recognize some package-manager and registry-runner commands in its agent guard. Case-variant launcher names, leading file-descriptor redirections, and supported shell wrappers with options can cause a raw install command to receive no guard decision. Remote project scaffolding through package-manager create/init commands can also avoid the approval decision used for other registry runners.\n\n## Impact\n\nWhen the SafeInstall guard is installed for a coding agent, a crafted shell command can bypass the intended deny or ask response. The coding agent may then run a package installation or registry-provided scaffolding command without SafeInstall policy evaluation and without SafeInstall enforcing disabled lifecycle scripts.\n\nExploitation requires a coding agent to act on attacker-influenced instructions and issue the crafted shell command. A successful malicious package or runner can execute with the permissions of the developer account, affecting the confidentiality, integrity, and availability of local source code, credentials, and development resources.\n\nThe vulnerability is limited to guard interception. Commands already routed through the SafeInstall CLI continue to receive normal policy evaluation.\n\n## Affected versions\n\n- safeinstall-cli \u003c= 0.10.1\n\n## Patched version\n\n- safeinstall-cli 0.10.2\n\n## Fix\n\nVersion 0.10.2:\n\n- normalizes package-manager and wrapper launcher names for detection and rewriting;\n- parses leading redirections before classifying the command;\n- handles supported wrapper option arity conservatively and fails closed on ambiguous embedded command syntax;\n- routes remote create/init scaffolding through the registry-runner approval path;\n- preserves SafeInstall routing for path-qualified package-manager invocations.\n\nThe patch includes a permanent regression corpus, table-driven parser characterization, an independent reference detector, and deterministic fuzz invariants. The integrated release candidate passed 626 tests, package smoke validation, and a one-million-command fuzz campaign with zero invariant violations.\n\n## Mitigation\n\nUpgrade to safeinstall-cli 0.10.2 or later.\n\nUntil an upgrade is possible, manually review every coding-agent shell command and prevent the agent from invoking package managers or registry runners directly. Running an affected guard does not make raw package-manager execution safe.\n\n## Credits\n\nDiscovered, reproduced, and remediated by the SafeInstall maintainer during adversarial parser testing.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"SafeInstall agent guard shell parsing can miss raw package execution","id":"GHSA-xrmc-c5cg-rv7x","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.10.2"],"introduced":["0"],"last_affected":[],"package":"safeinstall-cli","purl":null,"source":"GHSA-xrmc-c5cg-rv7x"},{"ecosystem":"npm","fixed":["0.10.2"],"introduced":["0"],"last_affected":[],"package":"safeinstall-cli","purl":"pkg:npm/safeinstall-cli","source":"GHSA-xrmc-c5cg-rv7x"}],"products":null,"published":"2026-07-10","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can bypass SafeInstall guard checks via crafted shell commands, allowing malicious package execution with developer permissions.","url":"https://insights.sbomify.com/GHSA-xrmc-c5cg-rv7x/"}