T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Third-Party CLI and Browser Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 14–24
Vulnerability Type: Unpinned and mutable third-party dependencies
Risk Level: MediumVulnerable Code
bash npm install -g agent-browser agent-browser install agent-browser install --with-depsbash git clone https://github.com/vercel-labs/agent-browser cd agent-browser pnpm install pnpm build agent-browser installTechnical Analysis
The installation instructions retrieve and execute mutable third-party content without pinning the npm package to a reviewed version or the Git repository to a specific commit. The source installation also resolves transitive dependencies through
pnpm install, but this project does not provide a lockfile or integrity information for that process.Consequently, the effective code installed by these commands can change after the Skill has been audited. A compromised package release, transitive dependency, repository default branch, or browser installer artifact could introduce attacker-controlled code.
Installing the package globally broadens its effect beyond the project directory. The
--with-depsoption may also install host-level dependencies, increasing exposure if the command is granted elevated authorization.Attack Path
- An attacker compromises the upstream npm package, a transitive dependency, the repository's default branch, or an installer artifact.
- The attacker publishes malicious code under the same mutable package name or upstream source.
- A user follows the documented installation procedure without verifying a fixed version, commit, or integrity digest.
- npm lifecycle behavior, the build process, or the
agent-browser installcommand executes the attacker-controlled content. - The malicious content operates with the privileges of the invoking user and can potentially access files, environment variables, browser data, and writable system resources av ...[truncated 503 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
agent-browserto an explicitly reviewed release instead of installing the package without a version:bash npm install -g agent-browser@<reviewed-version> - For source installations, check out a verified immutable commit:
bash git clone https://github.com/vercel-labs/agent-browser cd agent-browser git checkout --detach <verified-commit-sha> - Verify the selected release or commit against an authenticated upstream release and document the expected digest or signature.
- Use a committed lockfile with frozen dependency resolution, such as
pnpm install --frozen-lockfile, when building from source. - Prefer project-local installation over global installation where practical.
- Document what
agent-browser install --with-depschanges and require explicit user approval before any privileged system modification. - Run installation and browser automation in a sandbox or restricted account with access only to required files and credentials.
- Establish a dependency-review process before updating the pinned package version, commit, lockfile, or browser binaries.
- Pin
