T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:103
- Finding
- Unpinned Third-Party Package Is Downloaded and Executed## Vulnerability Details **File Location**: `SKILL.md`, lines 103–109 **Vulnerability Type**: Unsafe execution of an unpinned third-party dependency **Risk Level**: Medium ### Vulnerable Code ```markdown ## MCP Server If your platform supports MCP, use the npm package (21 tools): ``` npx humannft-mcp ``` ``` ### Technical Analysis The Skill recommends invoking `npx humannft-mcp` without specifying a package version, integrity hash, lockfile, verified source repository, or trusted publisher identity. Depending on the local npm configuration, `npx` can download the currently published package and immediately execute its code. The effective code therefore may differ from the code available when this Skill was audited. The package is expected to receive `HUMANNFT_API_KEY` through its environment and may inherit additional process privileges, environment variables, filesystem access, and network access from the invoking agent. This behavior is relevant to the Skill's MCP integration, but unrestricted execution of the latest package version exceeds the minimum privilege necessary to communicate with the marketplace. ### Attack Path 1. An attacker compromises the npm package, its publisher account, or its release process. 2. The attacker publishes a malicious version under the existing package name. 3. A user or agent follows the Skill instructions and runs `npx humannft-mcp`. 4. `npx` downloads and executes the malicious release. 5. The package reads `HUMANNFT_API_KEY` or other accessible environment and host data. 6. The package transmits the collected information or performs unauthorized local actions using the inherited process privileges. ### Impact Assessment Successful exploitation could expose the HumanNFT API credential and any other information available to the process. Depending on the execution environment, malicious package code could read or modify accessible files, make arbitrary network request ...[truncated 287 chars]
- Remediation
- ## Remediation Suggestions - Pin the package to a specific, audited version rather than resolving the latest release. - Use a lockfile and verify the package's integrity hash before installation or execution. - Document the authoritative package publisher, source repository, and expected release-signing or provenance information. - Install and inspect the pinned package before executing it; avoid automatic download-and-run behavior. - Run the MCP server in a sandbox with a read-only or narrowly scoped filesystem. - Expose only `HUMANNFT_API_KEY` and the minimum required environment variables to the process. - Restrict outbound network access to the documented HumanNFT API origin where operationally possible. - Rotate the API key immediately if an untrusted package version may have accessed it.
