playwright-cli
Warn
Audited by Gen Agent Trust Hub on May 7, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides the
playwright-cli evalcommand, which allows the execution of arbitrary JavaScript expressions within the browser context. This can be used to manipulate page state or access sensitive data within the DOM. - [REMOTE_CODE_EXECUTION]: The skill includes a
run-codecommand that executes arbitrary asynchronous Node.js code (using the Playwright API). As shown inreferences/running-code.md, this capability allows for complex operations such as file system writes (download.saveAs), permission management, and custom network routing. - [EXTERNAL_DOWNLOADS]: The
SKILL.mdfile instructs the agent to install an external package globally usingnpm install -g @playwright/cli@latest. This introduces a dependency on an external registry and potentially untrusted third-party code if the package is compromised or typosquatted. - [DATA_EXFILTRATION]: The skill provides multiple tools for accessing and storing sensitive information. The
state-savecommand exports cookies and local storage to JSON files on the local disk. Additionally,references/running-code.mddemonstrates how to read the system clipboard using theclipboard-readpermission. These capabilities could be combined to harvest and exfiltrate authentication tokens or user data. - [PROMPT_INJECTION]: The skill is highly susceptible to indirect prompt injection. It is designed to ingest and process content from arbitrary web pages (via
snapshot,content, andallTextContents). - Ingestion points: Web page content is ingested through the
snapshotcommand and customrun-codescraping logic inreferences/running-code.md. - Boundary markers: There are no instructions or delimiters provided to the agent to distinguish between its own system instructions and the potentially malicious instructions contained within the scraped web content.
- Capability inventory: The skill possesses powerful capabilities including arbitrary code execution (
run-code), file writing (state-save,screenshot,pdf), and network navigation, which could be abused if the agent follows instructions found on a malicious website. - Sanitization: No sanitization or validation of the scraped content is performed before it is presented to the agent's context.
Audit Metadata