What happened
Published 2026-12-02, CVSS 6.4 (CWE-73 arbitrary file write). The browser-use agent's run tool allows overwriting files in the host working directory, and prompt injection from controlled web content can redirect writes to trusted developer files. Fixed in 0.2.3.
Why it matters
This is a browser-use agent chain: poisoned web content → prompt injection → arbitrary file write into a developer's repo → code execution at the next npm/git operation. It shows how an agent's own file-write capability becomes a supply-chain infection vector.
Attack vector
The run tool's artifacts list is not validated against the working directory, so prompt-injected browsed content can make the model write attacker-chosen bytes to package.json, node_modules, or .git/hooks — achieving code execution when the developer later runs npm or git.
Affected systems
@browserbasehq/eve (Stagehand Eve integration) 0.2.0 before 0.2.3
Mitigation
Upgrade @browserbasehq/eve to 0.2.3 (Stagehand PR 3350 / commit b7a4b89); constrain the run tool's artifact writes to a sandboxed directory.