Skip to main content
Menu
Advisories

browser_open passes caller-supplied Chromium launch flags, allowing command execution

GHSA-5PXG-X8G8-FW4JPublished Updated GitHub

Description

Impact

The browser_open MCP tool (v3/@claude-flow/cli/src/mcp-tools/browser-tools.ts, the handler around lines 172-179) validates only url and session. input.args is joined with commas and passed to agent-browser as --args, which forwards it to the Chromium it launches.

Chromium has launch flags whose values are commands it runs: --renderer-cmd-prefix, --gpu-launcher and --browser-subprocess-path. Passing one of them through args makes Chromium run the command as the user. Any MCP caller can do this, including a model that follows a prompt injection. A harmless marker script was confirmed to run in a scratch directory.

The ADR-401 hardening (execFileSync, no shell) does not help: these flags are legitimate Chromium arguments.

Fix

Allow only a short list of launch flags (for example --disable-gpu, --disable-dev-shm-usage, window size), reject every other flag, reject entries containing commas, and apply the same check to every other place that forwards caller args into execBrowserCommand.

Credit

Found in an internal review on 2026-11-04.

Affected versions

References

GitHub · ruvnet/ruflo