playwright-cli
Warn
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides a
run-codecommand that evaluates arbitrary JavaScript strings within the browser context. This allows the agent to execute custom logic, interact with internal page state, and manipulate browser permissions at runtime. Evidence is found inSKILL.mdandreferences/running-code.mddescribing the usage ofplaywright-cli run-codewith function strings. - [DATA_EXFILTRATION]: The skill facilitates the extraction of sensitive browser information, including authentication cookies, localStorage, and sessionStorage. It also provides commands to save the entire browser state to disk. While necessary for automation, these commands allow the retrieval of active session tokens. Evidence is found in
SKILL.mdandreferences/storage-state.mddocumenting commands likecookie-get,localstorage-list, andstate-save. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from the web (e.g., through snapshots, element attributes, and page text) which is then used by the agent to make decisions. This creates a vulnerability where malicious web pages could influence the agent's behavior.
- Ingestion points: Browser snapshots, element text content (via
eval), page content, and console logs are read into the agent's context inSKILL.mdandreferences/test-generation.md. - Boundary markers: The instructions do not define explicit boundary markers or warnings to the agent to disregard instructions found within web page content.
- Capability inventory: The agent can execute browser JavaScript (
run-code), write files (state-save,screenshot,pdf), and intercept network requests (route) as documented throughout the skill. - Sanitization: There is no evidence of sanitization or filtering of the content retrieved from browser interactions before it is presented to the agent.
- [COMMAND_EXECUTION]: The skill uses command-line interfaces to execute
playwright-cli,npx, andnpmcommands, allowing for the execution of browser automation tasks and the management of Playwright tests as detailed inSKILL.mdandreferences/playwright-tests.md. - [EXTERNAL_DOWNLOADS]: The skill instructions suggest the global installation of the Playwright CLI from the official npm registry (
npm install -g @playwright/cli@latest). This is a reference to a well-known service and organization.
Audit Metadata