Vulnerabilities/

Apify Model Context Protocol (MCP) server: Domain Allowlist Bypass in fetch-apify-docs via String Prefix Matching

Severity:
Medium

Description

The fetch-apify-docs tool validates URLs against a domain allowlist using String.startsWith() instead of proper URL hostname comparison. This allows bypass via attacker-controlled subdomains (e.g., https://docs.apify.com.evil.com/), enabling the tool to fetch and return arbitrary web content to the LLM.

Recommendation

Update the @apify/actors-mcp-server package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@apify/actors-mcp-server
Anything's wrong? Let us know Last updated on May 19, 2026