T08 · Insecure Dependencies
- Location
SKILL.md:46- Finding
Runtime Execution of an Unpinned npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:46-72
Additional Locations:SKILL.md:152,193,206,299,364;references/cli-commands.md:8-182;references/pattern-types.md:16-337
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: HighVulnerable Code
bash npx daxiapi-cli@latest config get tokenbash npx daxiapi-cli@latest config set token YOUR_TOKEN_FROM_DAXIAPIbash npx daxiapi-cli@latest stock pattern vcpThe same
npx daxiapi-cli@latestexecution pattern is repeatedly prescribed throughout the Skill and its reference documents.Technical Analysis
The Skill directs the Agent to execute
daxiapi-clithroughnpxusing the mutable@latestversion selector. If the package is not already available locally,npxcan download it from the configured npm registry and immediately execute its entry point.Because
@latestdoes not identify a fixed, previously audited release, the code executed during a future Skill invocation may differ from the code that existed when this project was reviewed. A malicious package update, compromised publisher account, registry compromise, or transfer of package ownership could therefore introduce arbitrary executable code without requiring any modification to this Skill.The package executes with the permissions of the user or Agent process. It may consequently access files, environment variables, npm configuration, shell credentials, and the DAXIAPI token available to that process.
Attack Path
- An attacker compromises the
daxiapi-clipublisher account, package repository, release process, or relevant npm distribution channel. - The attacker publishes a malicious release and assigns it the
latestdistribution tag. - A user invokes the Skill for token configuration or stock screening.
- Following the Skill instructions, the Agent runs:
bash npx daxiapi-cli@latest stock pattern vcp npxretrieves and executes the ...[truncated 960 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace every
@latestreference with an exact, reviewed version:bash npx --yes daxiapi-cli@1.2.3 stock pattern vcp - Verify the selected package version, publisher identity, repository, release provenance, and transitive dependencies before approving it.
- Use a lockfile and npm integrity hashes where the deployment model permits dependency installation.
- Prefer a centrally installed, administratively approved executable over downloading code at each invocation.
- Execute the CLI in a restricted environment with:
- Minimal filesystem access.
- No unrelated environment secrets.
- Restricted outbound network access.
- No administrative privileges.
- Establish an explicit dependency-update process in which new versions are reviewed and tested before changing the pinned version.
- Apply the correction consistently across
SKILL.md,references/cli-commands.md, andreferences/pattern-types.md.
- Replace every
