playwright-cli
Warn
Audited by Gen Agent Trust Hub on Aug 22, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides
playwright-cli run-codeandplaywright-cli evalcommands which execute arbitrary JavaScript strings within the browser's execution context. This allows for complex page manipulation and data access that could be abused if the agent processes untrusted inputs. - [CREDENTIALS_UNSAFE]: The skill includes dedicated commands for managing authentication data, including
playwright-cli cookie-get,playwright-cli state-save, andplaywright-cli localstorage-get. These can be used to extract sensitive session tokens and authentication states from the browser. - [DATA_EXPOSURE_AND_EXFILTRATION]: Instructions in
references/running-code.mddemonstrate how to read the system clipboard usingnavigator.clipboard.readText()within arun-codeblock, which could lead to the exposure of sensitive information stored in the user's clipboard. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process content from arbitrary websites via
playwright-cli snapshot. It lacks explicit boundary markers or instructions to ignore malicious commands embedded in the processed web pages, creating a surface for indirect prompt injection. Ingestion points includeplaywright-cli goto(SKILL.md); Capability inventory includesrun-code,eval, andcookie-get(SKILL.md, references/storage-state.md). - [REMOTE_CODE_EXECUTION]: The skill provides instructions for installing the Playwright CLI using
npm install -g @playwright/cli@latestand running tests vianpx playwright test. While these target well-known package registries, they involve the download and execution of external code.
Audit Metadata