playwright-cli
Warn
Audited by Gen Agent Trust Hub on Sep 10, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCREDENTIALS_UNSAFE
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides tools for executing arbitrary JavaScript code within the browser context.
- Evidence: The
playwright-cli run-codecommand inSKILL.mdandreferences/running-code.mdexecutes a user-provided string as an asynchronous function. - Evidence: The
playwright-cli evalcommand inSKILL.mdandreferences/element-attributes.mdexecutes code in the DOM context of a target element. - [COMMAND_EXECUTION]: The skill instructions frequently utilize host-level command execution via
Bashtools for installation, testing, and debugging. - Evidence:
SKILL.mdandreferences/playwright-tests.mdinstruct the use ofnpm install,npm run, andnpx playwright testto manage the environment and execute test suites. - [DATA_EXFILTRATION]: The skill contains functionalities designed to access and export sensitive browser session data.
- Evidence:
playwright-cli state-saveinSKILL.mdandreferences/storage-state.mdsaves complete browser state, including cookies and localStorage, to local files likeauth.json. - Evidence: Commands such as
cookie-list,cookie-get,localstorage-list, andsessionstorage-listprovide direct access to potentially sensitive tokens and session identifiers. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to browse and interact with external, untrusted web pages, creating a significant attack surface for indirect injections.
- Ingestion points:
playwright-cli gotonavigates to arbitrary URLs;playwright-cli snapshotandplaywright-cli evalingest content from the target page into the agent context (detected inSKILL.md). - Boundary markers: Absent. There are no instructions to the agent regarding the separation of data from the target page and its own instructions.
- Capability inventory: High capabilities including
run-code(JavaScript execution),Bashtools (npm/npx package management), and file system access (state-save,screenshot). - Sanitization: Absent. The skill provides no mechanisms for sanitizing content read from the browser before processing.
- [EXTERNAL_DOWNLOADS]: The documentation includes instructions for downloading and installing external software packages.
- Evidence:
SKILL.mdsuggests installing the CLI tool vianpm install -g @playwright/cli@latest. This targets the official Playwright package registry. - [CREDENTIALS_UNSAFE]: While the documentation recommends against committing storage state files, it explicitly provides mechanisms for handling sensitive credentials in cleartext.
- Evidence:
references/storage-state.mddescribes the JSON format ofauth.json, which contains cleartext cookie values and localStorage items. Thecookie-setcommand allows passing session IDs directly as command-line arguments.
Audit Metadata