playwright-cli
Fail
Audited by Gen Agent Trust Hub on Sep 3, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFEDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
run-codecommand allows for the execution of arbitrary JavaScript within the browser context. This capability can be used to perform actions not natively supported by the CLI, such as interacting with internal browser APIs or bypassing page-level security. Evidence found inreferences/running-code.mdandSKILL.md. - [CREDENTIALS_UNSAFE]: The skill provides numerous ways to access and save sensitive session data.
playwright-cli state-saveexports cookies and local storage into a JSON file, which may contain authentication tokens or session identifiers.cookie-list,cookie-get,localstorage-list, andsessionstorage-listprovide direct access to these values in the console output. Evidence found inreferences/storage-state.mdandSKILL.md. - [DATA_EXFILTRATION]: Comprehensive monitoring tools like
playwright-cli networkandplaywright-cli tracing-startrecord all network traffic, including full request/response headers and bodies. This poses a significant risk if the agent interacts with sites containing sensitive PII or secrets. Evidence found inreferences/tracing.md. - [DYNAMIC_EXECUTION]: The tool relies on dynamic execution of scripts passed as arguments to the
run-codecommand. This pattern is inherently risky as it bypasses static analysis and allows for runtime behavior modification. Evidence found inreferences/running-code.md. - [INDIRECT_PROMPT_INJECTION]: As the skill is designed to navigate and extract data from external websites, it is vulnerable to indirect prompt injection. A malicious website could include hidden instructions in its HTML or metadata to manipulate the agent's subsequent actions. Ingestion point: Browser snapshots and page content in
SKILL.md. Boundary markers: Absent. Capability inventory:run-code(RCE),state-save(file write), and browser-based network access. Sanitization: Absent.
Recommendations
- AI detected serious security threats
Audit Metadata