Description
datagouv-mcp before 1.0.0 contains a server-side request forgery vulnerability in the get_dataservice_openapi_spec tool that lets dataservice producers make the server request internal addresses. Attackers can register a dataservice whose unvalidated machine_documentation_url targets loopback, private or cloud metadata addresses to scan internal ports and retrieve JSON or YAML responses.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| datagouv | datagouv-mcp | < 1.0.0 | 1.0.0 |
References
- https://github.com/datagouv/datagouv-mcp/pull/126 issue-tracking patch
- https://github.com/datagouv/datagouv-mcp/commit/52d5157a08a068386151aeee2a0c8a3243a54047 patch
- https://github.com/datagouv/datagouv-mcp/blob/v1.0.0/CHANGELOG.md release-notes
- https://github.com/datagouv/datagouv-mcp/blob/79ec83487b3b9557e341ead8e54fb957ae0aacd2/helpers/datagouv_api_client.py#L153-L173 technical-description
- https://github.com/datagouv/datagouv-mcp/blob/79ec83487b3b9557e341ead8e54fb957ae0aacd2/tools/get_dataservice_openapi_spec.py#L94-L121 technical-description
- VulnCheck Advisory: datagouv-mcp before 1.0.0 SSRF via get_dataservice_openapi_spec machine_documentation_url third-party-advisory