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

Medium 6.1 Published Updated

Attackers can bypass domain allowlists in the Apify MCP server to fetch arbitrary content, potentially exposing sensitive data to AI agents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-46341?

CVE-2026-46341 is a medium-severity server-side request forgery vulnerability in apify-mcp-server, published on 16 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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://[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.

Weakness: CWE-20, CWE-183

Which versions are affected by CVE-2026-46341?

2 open source packages ship an affected version, including @apify/actors-mcp-server.

PackageAffectedFixed in
@apify/actors-mcp-server npmAll versions0.9.21
@apify/actors-mcp-server npmAll versions0.9.21

How do I fix CVE-2026-46341?

Upgrade @apify/actors-mcp-server to 0.9.21 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-46341 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46341 exists.

Sources

Also known as GHSA-jwp7-wg77-3w9v.

Is CVE-2026-46341 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free