playwright-cli
Warn
Audited by Gen Agent Trust Hub on Jun 22, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill relies extensively on
playwright-cli,npm, andnpxto perform browser automation tasks and manage the environment. - [REMOTE_CODE_EXECUTION]: The
run-codecommand allows for the execution of arbitrary JavaScript/Playwright code, and the--filenameflag allows executing local script files. Additionally, the skill utilizesnpx playwright test, which executes test scripts that may contain arbitrary code. - [DATA_EXFILTRATION]: The skill possesses multiple primitives for accessing and moving data:
playwright-cli state-save,cookie-list, andlocalstorage-listcan access sensitive authentication tokens and session data.playwright-cli uploadanddropcan be used to send local files to remote websites.playwright-cli screenshotandpdfcan capture visual data from the browser.- [INDIRECT_PROMPT_INJECTION]: The skill is highly susceptible to indirect prompt injection as it processes untrusted content from the web:
- Ingestion points: Page content (HTML), page titles, URLs, console logs, and network request/response data.
- Boundary markers: None identified in the instructions to prevent the agent from obeying instructions found on web pages.
- Capability inventory: High-risk capabilities including
run-code,eval,upload, andstate-saveare available to be triggered. - Sanitization: There is no evidence of sanitization or filtering for content retrieved from external websites before it is processed by the agent.
- [DYNAMIC_EXECUTION]: The skill uses
playwright-cli evalto execute JavaScript in the context of the web page andrun-codeto execute Playwright scripts at runtime. - [EXTERNAL_DOWNLOADS]: The skill instructions include commands to install global packages (
npm install -g @playwright/cli@latest) and run uninstalled packages vianpx, which involves downloading code from the npm registry at runtime.
Audit Metadata