CVE-2026-46341
MEDIUMApify MCP server: Domain Allowlist Bypass in fetch-apify-docs via String Prefix Matching
Title source: cnaDescription
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://[email protected]/` to pass the ALLOWED_DOC_DOMAINS check and return arbitrary fetched content to the LLM. This issue is fixed in version 0.9.21.
References (4)
Core 4
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/apify/apify-mcp-server/security/advisories/GHSA-jwp7-wg77-3w9v
X_Refsource_Misc x_refsource_misc
https://github.com/apify/apify-mcp-server/pull/781
X_Refsource_Misc x_refsource_misc
https://github.com/apify/apify-mcp-server/commit/e39bdee530da1db0b3b3d3713558b33c9608e629
X_Refsource_Misc x_refsource_misc
https://github.com/apify/apify-mcp-server/releases/tag/v0.9.21
Scores
CVSS v3
6.1
EPSS
0.0019
EPSS Percentile
9.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-183
CWE-20
Status
published
Products (1)
apify/apify-mcp-server
< 0.9.21
Published
Jul 16, 2026
Tracked Since
Jul 16, 2026