T08 · Insecure Dependencies
- Location
references/agent-browser-overview.md:8- Finding
Unverified Third-Party Package and Runtime Installation
- Content
View full analysis
Vulnerability Details
File Location:
references/agent-browser-overview.md, lines 8-14
Additional Location:references/agent-browser-troubleshooting.md, lines 4-5
Vulnerability Type: Supply-chain risk from externally retrieved packages and executable components
Risk Level: MediumVulnerable Code Snippet
From
references/agent-browser-overview.md, lines 8-14:sh # Pin the version you trust: npm install -g agent-browser@<version> # Prefer a dedicated environment or container for installs. # Avoid running with elevated OS privileges. # Install browser runtime: agent-browser install # Linux dependencies (if needed): agent-browser install --with-depsA related alternative appears in the same section:
sh npx playwright install-deps chromiumFrom
references/agent-browser-troubleshooting.md, lines 4-5:sh agent-browser install agent-browser install --with-depsTechnical Analysis
The documentation instructs users to install and execute externally sourced npm, Playwright, browser-runtime, and operating-system dependency components. Although it recommends pinning a trusted version, the command contains the placeholder
@<version>rather than a concrete, reviewed, immutable version. It also provides no package-integrity, signature, checksum, lockfile, or trusted-registry validation procedure.npm install -gcan execute package lifecycle scripts and modifies the global Node.js environment. Annpxinvocation may resolve and execute a package obtained from a configured external registry when the required package is not already installed locally. The runtime installation commands can also retrieve executable browser components. Consequently, the effective code executed during setup is not fully represented by the audited skill files and may change based on package resolution, registry state, selected version, or upstream compromise.The p ...[truncated 1929 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
@<version>with an exact, reviewed version and document the approved version explicitly. Do not use version ranges,latest, or floating tags. - Prefer a project-local, lockfile-backed installation using
package-lock.jsonandnpm cirather than a global npm installation. - Use an explicitly configured trusted registry and verify package provenance, signatures, and published integrity metadata before installation.
- Avoid implicit
npxdownloads. Usenpx --no-installwith a previously verified local dependency, or invoke the pinned local binary directly. - Pin the Playwright and browser-runtime versions and document the expected checksums or official signature-verification procedure.
- Perform installation in a dedicated, unprivileged container or sandbox with restricted filesystem and network access.
- Disable npm lifecycle scripts during acquisition where feasible, review required scripts separately, and enable them only after verification.
- Preserve the existing warning against elevated privileges and make it an explicit requirement.
- Add upgrade procedures requiring security review and integrity validation before changing any pinned version.
- Replace
