Intel

AIKIDO-2026-543683

springdoc-openapi-starter-common-mcp is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)GHSA-6f5m-mhjg-qwxq Published 4 days ago

82

High Risk

This Affects:

JAVAspringdoc-openapi-starter-common-mcp
3.0.3 - 3.1.0
Fixed in 3.1.1
Are you affected? Scan for Free

TL;DR

The MCP tool callback builds outbound request paths by substituting tool-supplied path parameters directly into the URL without encoding. Injecting /, ?, #, or .. into a parameter retargets the request to unintended routes, including endpoints excluded from the API or marked @McpIgnore, and can smuggle query strings that expose caller headers. This lets a caller reach sensitive application endpoints through the MCP tool surface. The patch percent-encodes path segments before building the request.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have the springdoc MCP starter on the classpath, which registered MCP tool callbacks by default in the affected range.

Background info

springdoc-openapi-starter-common-mcp is vulnerable to Server-Side Request Forgery (SSRF) in versions 3.0.3 - 3.1.0.

How to fix this

Upgrade the org.springdoc:springdoc-openapi-starter-common-mcp library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform