NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Playwright MCP

CVE-2025-9611: Microsoft Playwright MCP Server vulnerable to DNS Rebinding Attack; Allows Attackers Access to All Server Tools

highCVSS 4.0 7.2GHSA-6fg3-hvw7-2fwq

Microsoft's Playwright MCP server before 0.0.40 does not validate the Origin header of incoming connections. A malicious web page can use DNS rebinding to reach a locally running server and call its MCP tools, which control a browser. Upgrade `@playwright/mcp` to 0.0.40.

Published Jan 7, 2026 · Analysis Nov 1, 2026

What an attacker can do

Playwright MCP runs on the developer's machine and exposes browser automation tools to an AI client. Without Origin validation, the browser of the developer cannot tell a legitimate client from a web page. In a DNS rebinding attack, the attacker's domain first points at their server, which serves a script, and then re-resolves to 127.0.0.1. The script's requests now count as same-origin to the browser and reach the local MCP port.

The page can then invoke the server's tool endpoints: opening pages, navigating, clicking, typing and reading content in a browser the server controls. That includes sessions that are logged in, if the automated browser profile has them. The attacker needs the victim to visit a page while the server is running over an HTTP transport. VulnCheck's description does not say which transport is affected. The CVSS 4.0 vector shows user interaction, low confidentiality and integrity impact, and high availability impact.

Who is affected

The npm package @playwright/mcp below 0.0.40. Check the version in use:

npm ls -g @playwright/mcp

For npx @playwright/mcp@latest setups in an MCP client config, check which version npx has cached or pinned. Servers started on a local port are the ones a rebinding page can reach.

@playwright/mcp

Ecosystem
npm
Affected
< 0.0.40
Fixed in
0.0.40
Check
npm ls @playwright/mcp

How to fix it

Upgrade to 0.0.40 or later:

npm install -g @playwright/mcp@latest

The fix is Microsoft's commit 1313fbd, referenced from the advisory. The sources list no workaround. Until you upgrade, stop the server when you are not using it and avoid browsing untrusted sites while it runs on a local port.

How to tell if you were hit

Check the server's access logs, if you keep them, for requests with an unfamiliar Host or Origin header. Look in your browser's history and DNS cache for a domain that resolves to both a public address and 127.0.0.1. Unexpected pages opening or navigating in the automated browser, or tool calls that your AI client did not make, are signs of abuse. Beam's agent hooks record the MCP tool calls an agent proposes, which lets you compare agent-driven calls against what ran in the browser.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Microsoft Playwright MCP Server versions prior to 0.0.40 fails to validate the Origin header on incoming connections. This allows an attacker to perform a DNS rebinding attack via a victim’s web browser and send unauthorized requests to a locally running MCP server, resulting in unintended invocation of MCP tool endpoints.

Questions

What is DNS rebinding in this case?

A web page's domain switches from a public address to 127.0.0.1, so the victim's browser sends requests to the local MCP server as if they were same-origin. Origin validation is the missing check.

Which version fixes CVE-2025-9611?

@playwright/mcp 0.0.40. Earlier versions are affected.

Does the user need to do anything?

Yes. The CVSS 4.0 vector shows passive user interaction: the victim visits a malicious page while the server runs.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology