playwright-cli
Warn
Audited by Gen Agent Trust Hub on Aug 26, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONCREDENTIALS_UNSAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill implements a
run-codecommand inreferences/playwright-cli-ref-running-code.mdthat allows for the execution of arbitrary JavaScript code blocks within the browser context. This capability enables the agent to dynamically execute logic that is not constrained by the static CLI commands, creating a potential vector for executing malicious code if supplied by an untrusted source.\n- [DATA_EXFILTRATION]: Several features facilitate the access and extraction of sensitive data from the browser environment: \n - The
state-savecommand and associated examples inreferences/playwright-cli-ref-storage-state.mdallow for the export of full browser storage states, including session cookies and localStorage.\n - Code examples in
references/playwright-cli-ref-running-code.mddemonstrate reading from the system clipboard vianavigator.clipboard.readText().\n - Network interception tools in
references/playwright-cli-ref-request-mocking.mdenable the capture of request bodies and headers, which may contain sensitive authentication tokens or user data.\n- [PROMPT_INJECTION]: The skill exhibits vulnerabilities related to both indirect injection and metadata poisoning: \n - Indirect Injection Surface: The agent can load and process untrusted content from the web via
goto,snapshot, andpage.content()commands. \n - Capability Inventory: High-impact tools such as arbitrary code execution (
run-code), storage manipulation (state-save), and form interaction are available to the agent for exploitation. \n - Boundary Markers and Sanitization: There are no mechanisms documented to delimit external data from agent instructions or to sanitize web content before processing.\n
- Metadata Poisoning: The skill's metadata in
SKILL.mdclaims the author is "Microsoft", which conflicts with the actual author context. This discrepancy is deceptive and could mislead users or agents regarding the skill's trustworthiness.\n- [CREDENTIALS_UNSAFE]: The skill explicitly handles and saves authentication states to local files (e.g.,auth.json). While the documentation provides warnings against committing these files to version control, the built-in functionality makes it easy to harvest and export valid session credentials.\n- [COMMAND_EXECUTION]: The core functionality of the skill relies on executing theplaywright-clibinary with various arguments and injected code strings, providing a direct interface for shell-based command execution for browser control.
Audit Metadata