T08 · Insecure Dependencies
- Location
SKILL.md:58- Finding
Unpinned Third-Party Packages Are Downloaded and Executed Automatically
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:58-68;references/rollinggo-npx.md:21-33,49-57;references/rollinggo-uv.md:23-40,50-58
Vulnerability Type: Unpinned dependency execution and supply-chain exposure
Risk Level: HighVulnerable Code Snippets
SKILL.md:58-68:markdown ## 版本新鲜度(始终使用最新版) 本技能默认策略:每次执行都使用最新发布版本。 - **npm/npx:** `npx --yes --package rollinggo@latest rollinggo ...` - **uvx:** `uvx --refresh --from rollinggo@latest rollinggo ...` 如果使用已安装命令而不是临时执行,先升级再运行: - **npm 全局:** `npm install -g rollinggo@latest` - **uv 工具:** `uv tool upgrade rollinggo@latest`references/rollinggo-npx.md:21-33:markdown ### 临时执行(npx — 无需安装) ```bash npx --yes --package rollinggo@latest rollinggo --help npx --yes --package rollinggo@latest rollinggo search-hotels --origin-query "..." --place "东京迪士尼" --place-type "<查看 --help 获取合法值>"全局安装(适合长期高频使用)
bash npm install -g rollinggo@latest rollinggo --helptext `references/rollinggo-uv.md:23-40`: ```markdown ### 临时执行(uvx — 无需安装) > 注意:包名和命令名都叫 `rollinggo`,所以需要 `--from` 语法。 > 显式使用 `rollinggo@latest`,让 uv 解析当前最新发布版本。 ```bash uvx --refresh --from rollinggo@latest rollinggo --help uvx --refresh --from rollinggo@latest rollinggo search-hotels \ --origin-query "查找东京迪士尼附近的酒店" \ --place "东京迪士尼" --place-type "<查看 --help 获取合法值>"安装为工具(适合长期高频使用)
bash uv tool install rollinggo@latest uv tool upgrade rollinggo@latest rollinggo --helptext ### Technical Analysis The Skill explicitly requires every execution to resolve or upgrade to `rollinggo@latest`. No exact package version, lockfile, package digest, integrity hash, trusted mirror, or update-review mechanism is provided. Consequently, the code executed at runtime can differ from the code that existed when the Skill was audited. The `npx --yes` option suppresses the normal installation confirmat ...[truncated 2044 chars]- Remediation
View remediation
Remediation Suggestions
- Replace every
rollinggo@latestreference with an exact, reviewed version, such asrollinggo@1.0.0. - Pin and verify package integrity using npm lockfiles and integrity metadata or the corresponding Python lockfile and package hashes.
- Remove
--yesfrom npx commands so unexpected installation is not silently approved. - Remove
--refreshand mandatory upgrade instructions from routine Skill execution. - Separate dependency updates from runtime operation. Review, test, and approve each new package release before changing the pinned version.
- Prefer a trusted internal registry or artifact repository containing reviewed package artifacts.
- Execute the CLI in a restricted sandbox with only the required API key, limited filesystem access, and constrained network access.
- Avoid global installation where possible because it modifies shared executable state.
- Replace every
