Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach MCP server or steer agent via prompt injection
-
DeliverySupply crafted save_dir or path argument to browser_download or browser_save_state
-
ExploitProvide attacker-controlled URL as download source
-
Executionbrowse-mcp writes response body to target path
-
ImpactPayload executes on next shell reload, login, or cron trigger
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must control arguments passed to the browser_download, browser_save_state, or browser_load_state MCP tools. Two exploitation paths exist. First, a malicious MCP client connecting directly to the browse-mcp MCP server endpoint: no OS-level authentication is required within the MCP protocol, but the client must be able to reach the server, which typically listens on a local socket or port. Second, an autonomous LLM agent already operating with browse-mcp that visits an attacker-controlled or compromised page containing an indirect prompt injection payload that steers the agent to supply a crafted save_dir or path argument in a subsequent tool call. The vulnerability requires browse-mcp version 0.8.1 or earlier; the affected tools (browser_download, browser_save_state, browser_load_state) must be exposed and callable. The force_fetch origin-fence bypass is additionally triggered only when the Playwright navigation path is unavailable and the fallback fetch() is used. Exploitation is constrained to paths writable by the process user - it does not grant root or SYSTEM privileges unless browse-mcp itself runs as root. No special application configuration beyond default installation is required to be vulnerable. |
| Impact | The provided CVSS 4.0 base score is 8.6 (High) with vector AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, reflecting a local attack vector with low complexity and no authentication requirement at the MCP protocol level. EPSS data is absent from the provided intelligence, so exploitation probability cannot be quantitatively assessed. There is no CISA KEV listing and no public exploit code has been identified at time of analysis - these are distinct signals, and neither confirms active exploitation nor rules it out. Despite the absence of observed exploitation, the technical bar is low: any entity capable of reaching the MCP server endpoint or steering an agent via a malicious web page can write arbitrary bytes to sensitive paths. The VA:H component in the provided CVSS 4.0 vector is defensible if critical files are corrupted, though the primary attack value is integrity (persistent code execution via init files) and confidentiality (arbitrary file read via browser_load_state). Real-world risk is substantially scoped to deployments where browse-mcp runs alongside an autonomous browsing agent that visits untrusted pages, or where the MCP server is reachable by untrusted clients - environments using browse-mcp only with fully trusted clients and no autonomous agent have significantly reduced exposure. |
| Exploit ScenarioDerived | An autonomous LLM agent configured with browse-mcp visits a page containing an adversarially crafted prompt injection payload instructing it to call browser_download with save_dir set to ~/.config/autostart and a URL pointing to an attacker-controlled server that returns a malicious .desktop file as its response body. The agent, following the injected instruction without awareness of the manipulation, invokes the tool; browse-mcp writes the attacker's payload to the autostart directory without path validation. On the next user login, the desktop environment executes the payload with the user's privileges. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 25, 2026
Arbitrary file write in browse-mcp (npm, versions ≤ 0.8.1) allows a malicious MCP client - or an autonomous LLM agent steered by indirect prompt injection on a visited page - to write attacker-controlled bytes to any filesystem path the process can reach, including shell init files, autostart entries, and cron files, enabling host code execution. The root cause is CWE-22 path traversal in browser_download (unvalidated save_dir argument) and browser_save_state/browser_load_state (unvalidated path argument), compounded by the force_fetch fallback bypassing the BROWSE_MCP_ALLOWED_ORIGINS origin fence entirely. No public exploit has been identified at time of analysis; vendor-released patch 0.8.2 is confirmed available.
Earlier versions of this analysis (1)
Arbitrary file write in browse-mcp (npm, versions <= 0.8.1) allows an attacker controlling MCP tool arguments - either through a malicious MCP client or by steering an autonomous AI agent via indirect prompt injection on a visited webpage - to write attacker-controlled bytes to any host path the process can reach, including ~/.bashrc, autostart entries, or cron files, leading to host code execution. The vulnerability spans three tools: browser_download (unvalidated save_dir), browser_save_state / browser_load_state (unvalidated path), and a force_fetch fallback that bypassed the BROWSE_MCP_ALLOWED_ORIGINS origin fence. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.
RemediationAI
Upgrade browse-mcp to version 0.8.2, the vendor-confirmed patch released 2026-06-13 (PR #58, commit 5352a4a56f626254b445bfa07e4bb48c5aad15c1). After upgrading, save_dir is confined under ~/.browse-mcp/downloads and the state path under ~/.browse-mcp/state; absolute paths and .. escapes are rejected at the library level. The data root can be relocated via the BROWSE_MCP_HOME environment variable. If immediate upgrade is not possible, set the BROWSE_MCP_TOOLS environment variable to an allowlist that excludes browser_download, browser_save_state, and browser_load_state, following the hardened recipe documented in SECURITY.md. This workaround has a critical limitation: the allowlist prevents an agent from discovering or calling these tools, but does not stop a malicious MCP client that directly names the tools in its requests - upgrade is the only complete fix. Advisory: https://github.com/That1Drifter/browse-mcp/security/advisories/GHSA-m9mq-7m7q-xc6p.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
browse-mcp is an npm-packaged Model Context Protocol (MCP) server that exposes browser automation capabilities as callable tools to LLM agents. The vulnerability (CWE-22, Path Traversal) exists in two tool handlers: browser_download resolved its write destination as path.join(save_dir, filename) without confining save_dir to a safe root directory, and browser_save_state/browser_load_state passed an explicit path option directly to filesystem operations without any validation. Because MCP tool arguments are entirely caller-supplied, any entity with MCP client access - including an LLM agent steered by adversarial content embedded in a page the browser visits - can supply an arbitrary save_dir or path value. A secondary flaw is that the force_fetch fallback path used a raw fetch() call that bypassed the BROWSE_MCP_ALLOWED_ORIGINS and BROWSE_MCP_BLOCKED_ORIGINS origin fence, permitting fetches from otherwise-blocked origins. The patch (v0.8.2, PR #58, commit 5352a4a) introduces a confineToDir() helper that resolves paths under ~/.browse-mcp/downloads and ~/.browse-mcp/state respectively, rejects absolute paths and .. traversal sequences, and adds a safeBasename() helper to strip directory components from server-supplied filenames. The force_fetch path now also invokes the origin fence check before fetching.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AV:L because the MCP server listens locally; PR:N as the MCP protocol requires no OS-level authentication; C:H for arbitrary file read via browser_load_state; A:N as availability disruption is not the primary attack mechanism.
Primary rating from Vendor (https://github.com/That1Drifter/browse-mcp).
CVSS VectorVendor: https://github.com/That1Drifter/browse-mcp
Lifecycle Timeline
3DescriptionCVE.org
Impact
browser_download wrote a fetched file to join(save_dir, filename) with no validation of save_dir, and browser_save_state / browser_load_state honored an explicit path unchanged. The MCP caller controls these arguments (a malicious MCP client, or an autonomous agent steered by indirect prompt injection on a visited page), so an attacker could supply an arbitrary save_dir (or state path) together with a URL whose response body became the file contents, writing attacker-controlled bytes to any path the process can reach (for example ~/.bashrc, an autostart entry, or a cron file). That is an arbitrary file write that can lead to host code execution. The force_fetch fallback additionally used a raw fetch() that bypassed the BROWSE_MCP_ALLOWED_ORIGINS origin fence.
Estimated severity: CVSS 3.1 around 7.8 (High) for the local / agent-mediated case.
Patches
Fixed in 0.8.2. save_dir is confined under the download root (~/.browse-mcp/downloads) and the explicit state path under ~/.browse-mcp/state; absolute paths and .. escapes are rejected, and download filenames are reduced to a bare basename. force_fetch now also honors the origin fence. Data roots remain relocatable via BROWSE_MCP_HOME. Upgrade to browse-mcp 0.8.2.
Workarounds
Restrict the exposed tools with BROWSE_MCP_TOOLS to a set that excludes browser_download, browser_save_state, and browser_load_state (for example the hardened recipe in SECURITY.md). Note that the allowlist hides the tools from an agent but does not stop a malicious MCP client from calling them by name, so upgrading is the real fix.
- Reported privately by novice-22.
Executive ViewAI
browse-mcp, an npm library supporting autonomous AI agents, contains a critical vulnerability enabling unauthorized code execution on systems running versions ≤0.8.1. No public exploit has been identified at time of analysis. Organizations deploying AI agents for web automation face direct risk of host compromise; patch 0.8.2 is available and should be deployed immediately.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-65581
GHSA-m9mq-7m7q-xc6p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB