playwright
Fail
Audited by Gen Agent Trust Hub on Apr 7, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
runCode(tools/runCode.js) andevaluate(tools/evaluate.js) tools execute arbitrary JavaScript strings provided in the parameters. Whileevaluateruns in the browser context,runCodeuses the Node.jsvmmodule to execute code on the host, which can be abused if the agent is manipulated into running malicious logic. - [DATA_EXFILTRATION]: The
outputFilefunction inlib/config.js, used bylib/response.js, allows for writing files to arbitrary absolute paths on the host system if asuggestedFilenameis provided as an absolute path. This vulnerability affects tools such aspdf,screenshot,video, andstorageState, enabling an attacker to overwrite system files or save sensitive data to accessible locations. - [DATA_EXFILTRATION]: The
fileUploadtool intools/files.jspermits the agent to select and upload arbitrary files from the local filesystem to a web page, which can be exploited to exfiltrate sensitive local documents or configuration files. - [CREDENTIALS_UNSAFE]: The skill provides tools for managing cookies (
tools/cookies.js) and web storage (tools/webstorage.js,tools/storage.js). These allow listing, retrieving, and exporting full session states, which often include sensitive authentication tokens and session identifiers. - [EXTERNAL_DOWNLOADS]: The
installtool intools/install.jstriggers the download and installation of browser binaries from external registries using the Playwright CLI. - [PROMPT_INJECTION]: The skill is highly susceptible to indirect prompt injection. It ingest untrusted data from web pages (via
snapshot,consoleMessages, andnetworkRequests) and possesses powerful capabilities—such as arbitrary file writes, cookie manipulation, and script execution—that can be triggered by instructions hidden in a malicious website's metadata or accessibility tree.
Recommendations
- AI detected serious security threats
Audit Metadata