Skip to main content

browse-mcp EUVDEUVD-2026-65581

| CVE-2026-55557 HIGH
Path Traversal (CWE-22)
2026-08-25 https://github.com/That1Drifter/browse-mcp GHSA-m9mq-7m7q-xc6p
8.6
CVSS 4.0 · Vendor: https://github.com/That1Drifter/browse-mcp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach MCP server or steer agent via prompt injection
  2. Delivery
    Supply crafted save_dir or path argument to browser_download or browser_save_state
  3. Exploit
    Provide attacker-controlled URL as download source
  4. Execution
    browse-mcp writes response body to target path
  5. Impact
    Payload 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Aug 25, 2026 - 16:51

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

browse-mcp < 0.8.2

Affected Packages

npm browse-mcp fix: 0.8.2

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

Vendor (https://github.com/That1Drifter/browse-mcp) PRIMARY 8.6 HIGH
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
vuln.today AI 7.7 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/That1Drifter/browse-mcp).

CVSS VectorVendor: https://github.com/That1Drifter/browse-mcp

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Aug 25, 2026 - 17:31 vuln.today
v2 - CVSS changed
CVSS changed
Aug 25, 2026 - 17:22 NVD
8.6 (HIGH)
CVE Published
Aug 25, 2026 - 16:28 cve.org
HIGH

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Rare
niche npm MCP server tool in an early-stage ecosystem
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy