T08 · Insecure Dependencies
- Location
SKILL.md:103- Finding
Unpinned Third-Party Package Is Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 103–109
Vulnerability Type: Unsafe execution of an unpinned third-party dependency
Risk Level: MediumVulnerable Code
markdown ## MCP Server If your platform supports MCP, use the npm package (21 tools):npx humannft-mcp
text Technical Analysis
The Skill recommends invoking
npx humannft-mcpwithout specifying a package version, integrity hash, lockfile, verified source repository, or trusted publisher identity. Depending on the local npm configuration,npxcan 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_KEYthrough 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
- An attacker compromises the npm package, its publisher account, or its release process.
- The attacker publishes a malicious version under the existing package name.
- A user or agent follows the Skill instructions and runs
npx humannft-mcp. npxdownloads and executes the malicious release.- The package reads
HUMANNFT_API_KEYor other accessible environment and host data. - 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
View 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_KEYand 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.
