CVE-2026-46341

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

State
Published
Severity
6.1 Medium
Published
Jul 16, 2026
Updated
Jul 17, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-183 Permissive List of Allowed Inputs

Affected Products

ProductVersions
apify-mcp-serverapify
  • < 0.9.21Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.