T08 · Insecure Dependencies
- Location
INSTALL.md:3- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
Vulnerability Details
File Location:
INSTALL.md:3-7
Additional Location:SKILL.md:13-17
Vulnerability Type: Unpinned third-party dependency installed globally
Risk Level: MediumVulnerable Code
bash npm install -g @foresigxt/foresigxt-cli-memoryTechnical Analysis
The installation documentation directs users to globally install
@foresigxt/foresigxt-cli-memorywithout specifying an exact version or verifying package integrity. Consequently, the package manager resolves the dependency to whichever release is current when the command is run.The executable source of this package is not included in the audited artifact, so its installation scripts and runtime behavior could not be independently reviewed. A compromised npm package, maintainer account, publishing token, or future release could introduce attacker-controlled installation or runtime code after this Skill has already been reviewed.
The global installation scope increases exposure by placing the executable in the user's global command environment. The command does not itself request elevated privileges, so the resulting privileges ordinarily remain those of the invoking user.
Attack Path
- An attacker compromises the package publisher, npm account, publishing token, or upstream release process.
- The attacker publishes a malicious version under the existing package name.
- A user follows the Skill documentation and runs the unpinned installation command.
- npm resolves the package to the malicious current release.
- Package lifecycle scripts may execute during installation, or malicious behavior may execute when the user invokes
fsxmemory. - The malicious package operates with the invoking user's permissions and may access files available to that account, including configured memory vaults and workspace data.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the privileges of the user performing the inst ...[truncated 568 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the package to an explicitly reviewed version:
bash npm install -g @foresigxt/foresigxt-cli-memory@1.3.1 - Publish and document expected package integrity hashes or signed release provenance.
- Verify npm provenance and maintain reproducible release artifacts.
- Prefer project-local installation over global installation:
bash npm install --save-exact @foresigxt/foresigxt-cli-memory@1.3.1 - Commit an appropriate lockfile when distributing the dependency through a project.
- Disable lifecycle scripts during initial inspection where practical:
bash npm install --ignore-scripts --save-exact @foresigxt/foresigxt-cli-memory@1.3.1 - Audit lifecycle scripts and executable source before enabling or invoking the package.
- Run the CLI under least privilege and restrict its vault path to data that it legitimately requires.
- Pin the package to an explicitly reviewed version:
