ZeroHour

CVE-2026-53957

niche

SSRF in Contentful MCP Server lets prompt injection steal management token

CVSS 3.1
7.7 high
EPSS
Published
()
Modified
AI analysis

Contentful MCP Server, a Model Context Protocol server for the Contentful Management API, contains a server-side request forgery flaw (CWE-918) in the export_space and import_space space-to-space migration tools. These tools pass LLM-controlled arguments such as host, proxy, rawProxy, and insecure network options into requests that carry the server's CONTENTFUL_MANAGEMENT_TOKEN, so once the migration tools are enabled via space_to_space_migration_handler, either a direct MCP call or a prompt injection embedded in attacker-controlled Contentful content can redirect the request and its Authorization header to an attacker-controlled host or proxy. Successful exploitation leaks the personal access token, granting persistent out-of-band access to every Contentful space within that token's scope; the regular tools that use createToolClient are unaffected because they pin the host from server configuration. Users of @contentful/mcp-server before 1.7.19 and @contentful/mcp-tools before 0.4.5 are affected. No public proof of concept exists and no exploitation in the wild is known.

What to do: Upgrade to @contentful/mcp-server 1.7.19 or later and @contentful/mcp-tools 0.4.5 or later. Rotate any CONTENTFUL_MANAGEMENT_TOKEN used with affected versions, since a leaked token grants persistent access to all spaces in its scope, and prefer narrowly scoped tokens going forward. Review Contentful API audit logs for unexpected activity, and avoid enabling the space_to_space_migration_handler tools on servers that process untrusted Contentful content.

Affected
Contentful @contentful/mcp-server< 1.7.19
Contentful @contentful/mcp-tools< 0.4.5
Estimated exposure
nichelikely low thousands of installations (order 10^3, e.g. developer and AI-agent environments) — This is an optional npm-distributed MCP server add-on used by Contentful customers running AI coding agents, with no public active-install telemetry, so the vulnerable population is a small subset of Contentful's developer base.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Contentful MCP Server is a Model Context Protocol server for the Contentful Management API. Prior to @contentful/mcp-server 1.7.19 and @contentful/mcp-tools 0.4.5, export_space and import_space in packages/mcp-tools/src/tools/jobs/space-to-space-migration/exportSpace.ts and packages/mcp-tools/src/tools/jobs/space-to-space-migration/importSpace.ts expose host, proxy, rawProxy, and insecure network options to LLM-controlled tool arguments and combine those options with the server's CONTENTFUL_MANAGEMENT_TOKEN. After space_to_space_migration_handler enables the migration tools, a direct MCP call or prompt injection through attacker-controlled Contentful content can redirect Contentful Management API requests and their Authorization header to an attacker-controlled host or proxy. The regular tools that use createToolClient are unaffected because those tools pin the host from server configuration. Exposure of the personal access token permits persistent out-of-band access to every Contentful space within the token's scope. This issue is fixed in @contentful/mcp-server 1.7.19 and @contentful/mcp-tools 0.4.5.

Weakness
CWE-918
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.