CVE-2026-46341: CWE-20: Improper Input Validation in apify apify-mcp-server
CVE-2026-46341 is an improper input validation vulnerability in the apify-mcp-server prior to version 0.9.21. The issue arises from the fetch-apify-docs tool validating allowed documentation domains using String.startsWith() instead of proper URL hostname comparison. This allows attacker-controlled URLs crafted to bypass the domain whitelist check and fetch arbitrary content. The vulnerability is fixed in version 0.9.21.
AI Analysis
Technical Summary
The apify-mcp-server's fetch-apify-docs tool prior to version 0.9.21 performs allowlist validation of documentation domains using String.startsWith(), which is insufficient for hostname validation. This allows URLs such as 'https://docs.apify.com.evil.com/' or 'https://[email protected]/' to bypass the ALLOWED_DOC_DOMAINS check and return arbitrary fetched content to the language model. This improper input validation (CWE-20) and improper neutralization of pathname elements (CWE-183) can lead to unintended data exposure. The issue is resolved in version 0.9.21.
Potential Impact
An attacker can craft malicious URLs that bypass domain allowlist checks, causing the server to fetch and return arbitrary content to the language model. This can lead to information disclosure and potential manipulation of data processed by the AI agents. The CVSS 3.1 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and partial confidentiality and integrity impact.
Mitigation Recommendations
Upgrade apify-mcp-server to version 0.9.21 or later, where the domain validation logic is corrected to properly compare URL hostnames instead of using String.startsWith(). No other mitigation is specified. Patch status is not explicitly stated but the fix is included in version 0.9.21.
CVE-2026-46341: CWE-20: Improper Input Validation in apify apify-mcp-server
Description
CVE-2026-46341 is an improper input validation vulnerability in the apify-mcp-server prior to version 0.9.21. The issue arises from the fetch-apify-docs tool validating allowed documentation domains using String.startsWith() instead of proper URL hostname comparison. This allows attacker-controlled URLs crafted to bypass the domain whitelist check and fetch arbitrary content. The vulnerability is fixed in version 0.9.21.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The apify-mcp-server's fetch-apify-docs tool prior to version 0.9.21 performs allowlist validation of documentation domains using String.startsWith(), which is insufficient for hostname validation. This allows URLs such as 'https://docs.apify.com.evil.com/' or 'https://[email protected]/' to bypass the ALLOWED_DOC_DOMAINS check and return arbitrary fetched content to the language model. This improper input validation (CWE-20) and improper neutralization of pathname elements (CWE-183) can lead to unintended data exposure. The issue is resolved in version 0.9.21.
Potential Impact
An attacker can craft malicious URLs that bypass domain allowlist checks, causing the server to fetch and return arbitrary content to the language model. This can lead to information disclosure and potential manipulation of data processed by the AI agents. The CVSS 3.1 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and partial confidentiality and integrity impact.
Mitigation Recommendations
Upgrade apify-mcp-server to version 0.9.21 or later, where the domain validation logic is corrected to properly compare URL hostnames instead of using String.startsWith(). No other mitigation is specified. Patch status is not explicitly stated but the fix is included in version 0.9.21.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T18:37:30.990Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5915cf68715ace436c3e55
Added to database: 07/16/2026, 17:33:03 UTC
Last enriched: 07/23/2026, 22:45:13 UTC
Last updated: 08/30/2026, 10:52:09 UTC
Views: 98
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.