GHSA-xrmc-c5cg-rv7x: Safeinstall cli SafeInstall Agent Guard Shell Parsing Vulnerability

HIGH
CVSS 8.8
CWE-693 CWE-178
Published
Advisory Summary

GHSA-xrmc-c5cg-rv7x is a HIGH (CVSS 8.8) safeinstall agent guard shell parsing vulnerability (CWE-693: Protection Mechanism Failure) affecting Safeinstall cli libraries in the npm ecosystem. The issue involves safeinstall agent guard shell parsing can miss raw package execution. Remediation is available by upgrading affected packages to version 0.10.2.

GHSA-xrmc-c5cg-rv7x at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xrmc-c5cg-rv7x
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product Safeinstall cli
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-xrmc-c5cg-rv7x

To remediate this vulnerability, upgrade all affected Safeinstall cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

safeinstall-cli fixed: 0.10.2
npm install safeinstall-cli@0.10.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls safeinstall-cli

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-xrmc-c5cg-rv7x, inspect your project dependencies using npm:

npm ls safeinstall-cli

Analyze the terminal output to locate any version of Safeinstall cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.2), your application is affected.

Note: The npm ls safeinstall-cli command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In Safeinstall cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary SafeInstall 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. ## Impact When 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. Exploitation 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. The vulnerability is limited to guard interception. Commands already routed through the SafeInstall CLI continue to receive normal policy evaluation. ## Affected versions - safeinstall-cli <= 0.10.1 ## Patched version - safeinstall-cli 0.10.2 ## Fix Version 0.10.2: - normalizes package-manager and wrapper launcher names for detection and rewriting; - parses leading redirections before classifying the command; - handles supported wrapper option arity conservatively and fails closed on ambiguous embedded command syntax; - routes remote create/init scaffolding through the registry-runner approval path; - preserves SafeInstall routing for path-qualified package-manager invocations. The 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. ## Mitigation Upgrade to safeinstall-cli 0.10.2 or later. Until 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. ## Credits Discovered, reproduced, and remediated by the SafeInstall maintainer during adversarial parser testing.

GHSA-xrmc-c5cg-rv7x Affected Safeinstall cli Versions

1 component(s)
Fixed Versions:
0.10.2
Product / Package Ecosystem Affected Versions Fixed Version
safeinstall-cli
npm
< 0.10.2
0.10.2

References

Frequently Asked Questions

What is GHSA-xrmc-c5cg-rv7x?
GHSA-xrmc-c5cg-rv7x is a security vulnerability in Safeinstall cli involving SafeInstall agent guard shell parsing can miss raw package execution under CWE-693: Protection Mechanism Failure.
Which Safeinstall cli versions are affected?
Affected versions include releases prior to 0.10.2 across affected packages: safeinstall-cli.
What version fixes GHSA-xrmc-c5cg-rv7x?
Upgrading to 0.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is safeinstall-cli affected?
Yes, safeinstall-cli is affected in releases prior to 0.10.2. Upgrade your dependency to 0.10.2 or later.
What is the CVSS score of GHSA-xrmc-c5cg-rv7x?
GHSA-xrmc-c5cg-rv7x has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-xrmc-c5cg-rv7x?
GHSA-xrmc-c5cg-rv7x is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check npm dependencies for GHSA-xrmc-c5cg-rv7x?
Run the dependency tree command: 'npm ls safeinstall-cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xrmc-c5cg-rv7x",
  "modified" : "2026-07-10T19:34:14Z",
  "published" : "2026-07-10T19:34:14Z",
  "aliases" : [ ],
  "summary" : "SafeInstall agent guard shell parsing can miss raw package execution",
  "details" : "## 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 <= 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "safeinstall-cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Mickdownunder/SafeInstall/security/advisories/GHSA-xrmc-c5cg-rv7x"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Mickdownunder/SafeInstall"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-178", "CWE-693" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-10T19:34:14Z",
    "nvd_published_at" : null
  }
}