Skip to content

CVE-2026-46341 Apify MCP server: Domain Allowlist Bypass in fetch-apify-docs via String Prefix Matching

MediumCVSS 6.1 EPSS 0.23%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

The Apify MCP server enables AI agents to extract data from websites using ready-made scrapers, crawlers, and automation tools available on the Apify Store. Prior to 0.9.21, the fetch-apify-docs tool in src/tools/common/fetch_apify_docs.ts validates allowlisted documentation domains with String.startsWith() rather than URL hostname comparison, allowing attacker-controlled URLs such as https://docs.apify.com.evil.com/ and https://docs.apify.com@evil.com/ to pass the ALLOWED_DOC_DOMAINS check and return arbitrary fetched content to the LLM. This issue is fixed in version 0.9.21.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
apify @apify/actors-mcp-server(npm) < 0.9.21 0.9.21 Fixed
apify-mcp-server = < 0.9.21 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
apify-mcp-server = < 0.9.21 No fix listed
apify @apify/actors-mcp-server(npm) < 0.9.21 0.9.21

References