Open-source MCP scanner mcp-witness audits PyPI, finds SSRF and DNS rebinding across six packages

didesle · reddit · 2026-10-27

A security engineer released mcp-witness, an open-source (Apache-2.0) MCP server scanner combining static analysis (15 rules over tools/list and Python/TypeScript source), a dynamic harness that confirms findings against live servers, and a capability classifier. Auditing Python MCP servers on PyPI surfaced two recurring vulnerability classes across six packages, responsibly disclosed under a 90-day embargo: outbound SSRF in URL-fetch tools that can reach the cloud metadata endpoint and return live credentials (including Anthropic's reference fetch server), and inbound DNS rebinding on local HTTP-transport servers letting any web page drive your local MCP tools — no agent or prompt injection needed. Root cause: servers assume an upstream proxy, IMDSv2, or agent judgment enforces a boundary the package never checks. Self-checks: can your fetch tools reach 169.254.169.254/reserved ranges, and do your HTTP servers reject unexpected Origins?

Original post →

More from coding & agent

coding & agent channel →