Friday, 4 December 2026
4 agent hacks today▼ 3 vs yesterday (7)

Prompt injection lets web pages write files in Browserbase Eve

A flaw in the browser agent's run tool let attacker-controlled web content overwrite files such as package.json, with code execution following.

By The Agentic Times ·

A spider web strand pierces through a window, its silk rewriting the blueprints on a desk below while unseen hands lose control of their tools.
A spider web strand pierces through a window, its silk rewriting the blueprints on a desk below while unseen hands lose control of their tools. · Illustration: The Agentic Times

A vulnerability in Browserbase's Eve browser agent allowed attacker-controlled web pages to write arbitrary files into the directory a developer was working in, according to an entry published to the US National Vulnerability Database on 2 December 2026.

The flaw is tracked as CVE-2026-142233 and affects the npm package @browserbasehq/eve from version 0.2.0 up to, but not including, 0.2.3. According to the NVD record, the problem lies in the agent's "run" tool, which reports the artefacts it has produced. An attacker could replace that artefacts list, causing the agent to write bytes of the attacker's choosing to the host working directory.

The route in is prompt injection, in which text on a web page is read by an AI model as if it were an instruction from the user. Because Eve is a browsing agent, it processes whatever content it is pointed at. The NVD entry states that attackers controlling browsed web content can use prompt injection to make the model write to files including package.json, node_modules or .git/hooks. Each of those is executed or consulted by ordinary developer tooling, so the record says code execution follows when a developer subsequently runs npm or git.

That chain matters because it does not require the agent itself to run anything dangerous. The agent only writes a file. The payload fires later, in the developer's own shell, during a routine install or commit. Git hooks in particular are scripts that run automatically at defined points in a git workflow, and package.json can carry lifecycle scripts that run on installation.

The advisory references source code in the Browserbase stagehand repository, specifically two ranges in the integrations core facade tools file, along with a commit and pull request 3350 that address the issue. A separate advisory from VulnCheck covers the same defect, describing it as arbitrary file write via run tool artefacts. Version 0.2.3 is the first release listed as unaffected, so users of 0.2.0 through 0.2.2 are the ones in scope.

No exploitation in the wild is described in the sources, and the records do not say who reported the flaw or when it was introduced. The NVD entry was published at 17:17 UTC on 2 December 2026.

The case is a clean example of a pattern that keeps recurring in agent tooling: a tool that looks like bookkeeping turns out to be a file write primitive. The artefacts list was presumably meant to let the agent declare what it had produced. Because the model controls that list, and because the model's inputs include untrusted web pages, control of the list passes to whoever owns the page. The security boundary that developers assume exists between "content the agent reads" and "files on my laptop" was not enforced in code.

Organisations running Eve as part of a browsing or automation pipeline should check the installed version and move to 0.2.3 or later. Where an older version has been used against untrusted sites, the NVD description suggests reviewing package.json, the contents of node_modules and the .git/hooks directory in any working directory the agent had access to, before running further npm or git commands there.

Sources

  1. nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-142233