Potential Vulnerability in Apify MCP Server Affecting AI Data Extraction
CVE-2026-46341
6.1MEDIUM
What is CVE-2026-46341?
The Apify MCP server, designed for AI agents to extract data from websites, has a vulnerability in its fetch-apify-docs tool prior to version 0.9.21. The tool improperly validates allowed documentation domains using String.startsWith() instead of performing a proper URL hostname comparison. This oversight allows attackers to use controlled URLs, such as 'https://docs.apify.com.evil.com/' and 'https://docs.apify.com@evil.com/', to bypass security checks. Consequently, this can lead to the unintentional returning of arbitrary content, potentially compromising data integrity and security for users leveraging the Apify service for automation tasks. The issue was addressed and fixed in version 0.9.21.
Affected Version(s)
apify-mcp-server < 0.9.21
