Skip to main content
← All vulnerabilities
CVE-2026-46341GHSA-JWP7-WG77-3W9V

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.9.21
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • apify apify-mcp-server

    fixed in 0.9.21

  • @apify/actors-mcp-servernpm

    fixed in 0.9.21

References 4

GitHub · apify/apify-mcp-server