Vulnerabilities in pkg:npm/safeinstall-cli
PACKAGEGHSA-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.
pkg:npm/safeinstall-cli
Vulnerability advisories affecting package pkg:npm/safeinstall-cli. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xrmc-c5cg-rv7x | - | HIGH | SafeInstall agent guard shell parsing can miss raw package execution |
GHSA-xrmc-c5cg-rv7x at a Glance
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).
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.
npm install safeinstall-cli@0.10.2
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
GHSA-xrmc-c5cg-rv7x Affected Safeinstall cli Versions
1 component(s)| 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?
Which Safeinstall cli versions are affected?
What version fixes GHSA-xrmc-c5cg-rv7x?
Is safeinstall-cli affected?
What is the CVSS score of GHSA-xrmc-c5cg-rv7x?
What CWE is associated with GHSA-xrmc-c5cg-rv7x?
How can I check npm dependencies for GHSA-xrmc-c5cg-rv7x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}