T08 · Insecure Dependencies
- Location
SKILL.md:82- Finding
Unpinned Runtime Dependency Retrieval and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 82-87
Vulnerability Type: Supply-chain risk caused by executing an unpinned package
Risk Level: HighVulnerable Code
bash # Remove the old configuration, if present mcporter server remove chrome-devtools # Add a new MCP server configuration mcporter server add chrome-devtools \ --command "npx" \ --args "chrome-devtools-mcp@latest,--browserUrl,http://127.0.0.1:18800,--no-usage-statistics"Technical Analysis
The documented automatic recovery process configures
mcporterto runchrome-devtools-mcp@latestthroughnpx. Thelatesttag is mutable, so the code executed at runtime may differ from the version that existed when this Skill was reviewed.Package execution through
npxcan download and run third-party JavaScript, including package lifecycle or startup code. Consequently, compromise of the package, its publisher account, the package registry, or a transitive dependency could introduce arbitrary code into the Agent environment without any corresponding modification to this repository.The process also removes the existing
chrome-devtoolsserver configuration before installing its replacement. This can overwrite a previously trusted or locally pinned configuration and makes the dependency-retrieval step part of an automated recovery path.Attack Path
- An attacker compromises the upstream package, its publisher account, the package registry, or a transitive dependency.
- A malicious package version is published under the mutable
latestdistribution tag. - The Chrome DevTools MCP service becomes unavailable or the documented recovery process is otherwise initiated.
- The existing
chrome-devtoolsconfiguration is removed. npxresolveschrome-devtools-mcp@latestand downloads the attacker-controlled release.- The package executes with the same operating-system identity and privileges as the Ag ...[truncated 744 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
chrome-devtools-mcp@latestwith an exact, reviewed version, such aschrome-devtools-mcp@X.Y.Z. - Pin and verify the package integrity hash or use a lockfile-backed, reproducible installation.
- Install the dependency during a controlled provisioning step rather than downloading executable code during runtime recovery.
- Require explicit user confirmation before replacing an existing MCP server configuration.
- Back up the previous configuration and restore it automatically if validation of the replacement fails.
- Restrict registry sources to an approved registry and validate package provenance or signatures where supported.
- Run the MCP server under a dedicated, least-privileged account or sandbox with restricted filesystem and network access.
- Avoid exposing authenticated browser sessions to MCP components that have not been version-pinned and reviewed.
- Replace
