Vulnerabilities in pkg:npm/@playwright/mcp

PACKAGE
Advisory Identifier: GHSA-6fg3-hvw7-2fwq
Advisory Summary

CVE-2025-9611 is a HIGH microsoft playwright mcp server vulnerable vulnerability (CWE-749: Exposed Dangerous Method or Function) affecting @playwright/mcp libraries in the npm ecosystem. The issue involves microsoft playwright mcp server vulnerable to dns rebinding attack; allows attackers access to all server tools. Remediation is available by upgrading affected packages to version 0.0.40.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@playwright/mcp

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@playwright/mcp. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6fg3-hvw7-2fwq CVE-2025-9611 HIGH Microsoft Playwright MCP Server vulnerable to DNS Rebinding Attack; Allows Attackers Access to All Server Tools

CVE-2025-9611 at a Glance

CVE Identifier CVE-2025-9611
GHSA Identifier GHSA-6fg3-hvw7-2fwq
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-749: Exposed Dangerous Method or Function
Affected Product @playwright/mcp
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-9611

To remediate this vulnerability, upgrade all affected @playwright/mcp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@playwright/mcp fixed: 0.0.40
npm install @playwright/mcp@0.0.40
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @playwright/mcp

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-9611, inspect your project dependencies using npm:

npm ls @playwright/mcp

Analyze the terminal output to locate any version of @playwright/mcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.40), your application is affected.

Note: The npm ls @playwright/mcp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-749: Exposed Dangerous Method or Function, where the product provides an applications programming interface (api) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted. In @playwright/mcp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-9611 Affected @playwright/mcp Versions

1 component(s)
Fixed Versions:
0.0.40
Product / Package Ecosystem Affected Versions Fixed Version
@playwright/mcp
npm
< 0.0.40
0.0.40

References

Frequently Asked Questions

What is CVE-2025-9611?
CVE-2025-9611 is a security vulnerability in @playwright/mcp involving Microsoft Playwright MCP Server vulnerable to DNS Rebinding Attack; Allows Attackers Access to All Server Tools under CWE-749: Exposed Dangerous Method or Function.
Which @playwright/mcp versions are affected?
Affected versions include releases prior to 0.0.40 across affected packages: @playwright/mcp.
What version fixes CVE-2025-9611?
Upgrading to 0.0.40 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @playwright/mcp affected?
Yes, @playwright/mcp is affected in releases prior to 0.0.40. Upgrade your dependency to 0.0.40 or later.
What CWE is associated with CVE-2025-9611?
CVE-2025-9611 is classified under CWE-749: Exposed Dangerous Method or Function (The product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted.).
How can I check npm dependencies for CVE-2025-9611?
Run the dependency tree command: 'npm ls @playwright/mcp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6fg3-hvw7-2fwq",
  "modified" : "2026-01-07T20:02:55Z",
  "published" : "2026-01-07T12:31:25Z",
  "aliases" : [ "CVE-2025-9611" ],
  "summary" : "Microsoft Playwright MCP Server vulnerable to DNS Rebinding Attack; Allows Attackers Access to All Server Tools",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@playwright/mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.40"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-8rgw-6xp9-2fg3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-9611"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/playwright-mcp/issues/1206"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/playwright/commit/1313fbd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/playwright-mcp"
  }, {
    "type" : "WEB",
    "url" : "https://msrc.microsoft.com/report/vulnerability/VULN-164412"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/microsoft-playwright-mcp-server-dns-rebinding-via-missing-origin-header-validation"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-749" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-07T20:02:55Z",
    "nvd_published_at" : "2026-01-07T12:17:06Z"
  }
}