Description
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.
Problem types
CWE-749 Exposed Dangerous Method or Function
Product status
Any version before 0.0.40
Credits
Jonathan Leitschuh
References
github.com/...search/security/advisories/GHSA-8rgw-6xp9-2fg3
github.com/microsoft/playwright/commit/1313fbd
www.vulncheck.com/...ng-via-missing-origin-header-validation