Vulnerability  ·  2026-08-16

swagger-testcase-mcp: SSRF via unvalidated Swagger source fetch in fetch_swagger tool

VulnerabilityMedium impactGlobalCVE-2026-19765
An MCP tool that lets an AI agent fetch OpenAPI/Swagger specs performs no validation on the target URL, enabling classic SSRF when the agent (or an attacker manipulating agent input) supplies an internal or cloud-metadata URL. CVSS 6.3 (Medium).
Demonstrates the recurring MCP-server SSRF pattern where any 'fetch a URL' tool exposed to an LLM agent becomes a pivot into internal infrastructure if the agent can be steered (via prompt injection or malicious task input) toward attacker-chosen URLs.
The loadSource function in src/utils/swagger-parser.ts, invoked via the fetch_swagger MCP tool, fetches an attacker-supplied URL without validation, allowing SSRF against internal network resources.
swagger-testcase-mcp (eyaushev/swagger-testcase-mcp), commit 5babb27
No fixed version identified at disclosure; restrict egress from the MCP server host and validate/allowlist swagger source URLs.
NVD CVE-2026-19765
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →