T08 · Insecure Dependencies
- Location
SKILL.md:25- Finding
Unverified Third-Party npm Package Is Downloaded and Executed
- Content
View full analysis
= 20. After the user confirms, add to the client's MCP configuration (the exact file varies by client): ```json { "mcpServers": { "leetcode": { "command": "npx", "args": ["-y", "@sperekrestova/interactive-leetcode-mcp@3.1.1"] } } } ``` For Claude Code specifically, you can also run: ```bash claude mcp add --transport stdio leetcode -- npx -y @sperekrestova/interactive-leetcode-mcp@3.1.1 ``` ``` ### Technical Analysis The Skill instructs the user or Agent to execute `npx -y`, which automatically downloads and runs the external npm package `@sperekrestova/interactive-leetcode-mcp`. Pinning the dependency to version `3.1.1` reduces exposure to unexpected future releases, and requiring user confirmation is a meaningful safeguard. However, neither measure verifies the integrity or behavior of the retrieved package. The project contains only `SKILL.md`; the MCP server implementation and its dependency tree are not included in the audited artifact. Consequently, this audit cannot verify the package's implementation, transitive dependencies, network destinations, credential handling, or server-provided MCP prompts. No checksum, signature, lockfile with integrity metadata, reviewed vendored artifact, or execution sandbox is specified. This is especially security-sensitive because the installed MCP server is expected to: - Execute locally with the invoking user's permissions. - Receive LeetCode `csrftoken` and `LEETCODE_SESSION` values during authentication. - Store those credentia ...[truncated 2508 chars]- Remediation
View remediation
