playwright-cli

Warn

Audited by Gen Agent Trust Hub on Oct 29, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill implements run-code and eval commands that allow the execution of arbitrary JavaScript code within the browser context. This capability can be used to bypass standard UI interactions, modify network responses, and interact with the browser's internal APIs.
  • [DATA_EXFILTRATION]: Multiple commands provide access to sensitive information that could be exfiltrated if the agent is directed to a malicious site or mishandles the data. This includes cookie-list, localstorage-list, and sessionstorage-list for session data, as well as state-save for full browser state. Additionally, the run-code tool can be used to read the system clipboard via navigator.clipboard.readText().
  • [INDIRECT_PROMPT_INJECTION]: The skill acts as a high-privilege interface to the web, creating a significant attack surface for indirect prompt injection.
  • Ingestion points: The agent ingests untrusted data from web pages through snapshot, eval, run-code, and console output.
  • Boundary markers: No boundary markers or instructions are provided to help the agent distinguish between its own instructions and data retrieved from the web.
  • Capability inventory: The skill has access to the local file system (via upload and download.saveAs), sensitive browser storage, and arbitrary JavaScript execution.
  • Sanitization: The content retrieved from the browser is not sanitized or filtered before being processed by the agent.
  • [EXTERNAL_DOWNLOADS]: The skill's documentation suggests the use of npx playwright-cli, which involves downloading and executing a package from the npm registry at runtime.
  • [COMMAND_EXECUTION]: The skill relies on the Bash tool to interact with the playwright-cli binary, enabling the agent to execute shell commands to control browser processes.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 29, 2026, 12:41 PM