Vulnerabilities in pkg:npm/@mobilenext/mobile-mcp

PACKAGE
Advisory Identifier: GHSA-5qhv-x9j4-c3vm
Advisory Summary

CVE-2026-35394 is a HIGH (CVSS 8.3) arbitrary android intent execution vulnerability (CWE-939: Improper Authorization in Handler for Custom URL Scheme) affecting @mobilenext/mobile-mcp libraries in the npm ecosystem. The issue involves arbitrary android intent execution via mobile_open_url. Remediation is available by upgrading affected packages to version 0.0.50.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@mobilenext/mobile-mcp

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@mobilenext/mobile-mcp. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5qhv-x9j4-c3vm CVE-2026-35394 HIGH @mobilenext/mobile-mcp: Arbitrary Android Intent Execution via mobile_open_url
GHSA-3p2m-h2v6-g9mx CVE-2026-33989 HIGH @mobilenext/mobile-mcp alllows arbitrary file write via Path Traversal in mobile screen capture tools

CVE-2026-35394 at a Glance

CVE Identifier CVE-2026-35394
GHSA Identifier GHSA-5qhv-x9j4-c3vm
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-939: Improper Authorization in Handler for Custom URL Scheme
Affected Product @mobilenext/mobile-mcp
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-35394

To remediate this vulnerability, upgrade all affected @mobilenext/mobile-mcp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@mobilenext/mobile-mcp fixed: 0.0.50
npm install @mobilenext/mobile-mcp@0.0.50
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @mobilenext/mobile-mcp

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-35394, inspect your project dependencies using npm:

npm ls @mobilenext/mobile-mcp

Analyze the terminal output to locate any version of @mobilenext/mobile-mcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.50), your application is affected.

Note: The npm ls @mobilenext/mobile-mcp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-939: Improper Authorization in Handler for Custom URL Scheme, where the product uses a handler for a custom url scheme, but it does not properly restrict which actors can invoke the handler using the scheme. In @mobilenext/mobile-mcp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The `mobile_open_url` tool in mobile-mcp passes user-supplied URLs directly to Android's intent system without any scheme validation, allowing execution of arbitrary Android intents, including USSD codes, phone calls, SMS messages, and content provider access. ### Details The vulnerable code passes URLs directly to `adb shell am start -a android.intent.action.VIEW -d <url>` without checking the URL scheme. This can enable malicious schemes such as `tel:`, `sms:`, `mailto:`, `content://`, and `market://` to be executed. Since MCP servers are designed to be operated by AI agents, which are vulnerable to prompt injection attacks, a malicious document or website could inject instructions that cause the AI to execute dangerous intents on a connected mobile device. ### Impact An attacker via prompt injection can: - Execute USSD codes (e.g., `tel:*#06#` to display IMEI - confirmed on Pixel 7a, behavior varies by device; or device-specific factory reset codes) - Initiate phone calls to premium rate numbers - Draft SMS messages with attacker-controlled content - Access content providers (contacts, SMS, call logs) - Open app installation prompts ### Proof of Concept ```json {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mobile_open_url","arguments":{"device":"<id>","url":"tel:*#06#"}}} ``` Result: IMEI displayed on device. ```json {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mobile_open_url","arguments":{"device":"<id>","url":"sms:1234567890?body=HACKED"}}} ``` Result: SMS app opens with a pre-filled message. ### Remediation Upgrade to version 0.0.50 or later, which restricts `mobile_open_url` to `http://` and `https://` schemes by default. Users who require other URL schemes can opt in by setting `MOBILEMCP_ALLOW_UNSAFE_URLS=1`.

CVE-2026-35394 Affected @mobilenext/mobile-mcp Versions

1 component(s)
Fixed Versions:
0.0.50
Product / Package Ecosystem Affected Versions Fixed Version
@mobilenext/mobile-mcp
npm
< 0.0.50
0.0.50

References

Frequently Asked Questions

What is CVE-2026-35394?
CVE-2026-35394 is a security vulnerability in @mobilenext/mobile-mcp involving Arbitrary Android Intent Execution via mobile_open_url under CWE-939: Improper Authorization in Handler for Custom URL Scheme.
Which @mobilenext/mobile-mcp versions are affected?
Affected versions include releases prior to 0.0.50 across affected packages: @mobilenext/mobile-mcp.
What version fixes CVE-2026-35394?
Upgrading to 0.0.50 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @mobilenext/mobile-mcp affected?
Yes, @mobilenext/mobile-mcp is affected in releases prior to 0.0.50. Upgrade your dependency to 0.0.50 or later.
What is the CVSS score of CVE-2026-35394?
CVE-2026-35394 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H.
What CWE is associated with CVE-2026-35394?
CVE-2026-35394 is classified under CWE-939: Improper Authorization in Handler for Custom URL Scheme (The product uses a handler for a custom URL scheme, but it does not properly restrict which actors can invoke the handler using the scheme.).
How can I check npm dependencies for CVE-2026-35394?
Run the dependency tree command: 'npm ls @mobilenext/mobile-mcp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5qhv-x9j4-c3vm",
  "modified" : "2026-04-06T23:43:53Z",
  "published" : "2026-04-04T05:37:10Z",
  "aliases" : [ "CVE-2026-35394" ],
  "summary" : "@mobilenext/mobile-mcp: Arbitrary Android Intent Execution via mobile_open_url",
  "details" : "### Summary\n\nThe `mobile_open_url` tool in mobile-mcp passes user-supplied URLs directly to Android's intent system without any scheme validation, allowing execution of arbitrary Android intents, including USSD codes, phone calls, SMS messages, and content provider access.\n\n### Details\n\nThe vulnerable code passes URLs directly to `adb shell am start -a android.intent.action.VIEW -d <url>` without checking the URL scheme. This can enable malicious schemes such as `tel:`, `sms:`, `mailto:`, `content://`, and `market://` to be executed.\n\nSince MCP servers are designed to be operated by AI agents, which are vulnerable to prompt injection attacks, a malicious document or website could inject instructions that cause the AI to execute dangerous intents on a connected mobile device.\n\n### Impact\n\nAn attacker via prompt injection can:\n- Execute USSD codes (e.g., `tel:*#06#` to display IMEI - confirmed on Pixel 7a, behavior varies by device; or device-specific factory reset codes)\n- Initiate phone calls to premium rate numbers\n- Draft SMS messages with attacker-controlled content\n- Access content providers (contacts, SMS, call logs)\n- Open app installation prompts\n\n### Proof of Concept\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"mobile_open_url\",\"arguments\":{\"device\":\"<id>\",\"url\":\"tel:*#06#\"}}}\n```\n\nResult: IMEI displayed on device.\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"mobile_open_url\",\"arguments\":{\"device\":\"<id>\",\"url\":\"sms:1234567890?body=HACKED\"}}}\n```\n\nResult: SMS app opens with a pre-filled message.\n\n### Remediation\n\nUpgrade to version 0.0.50 or later, which restricts `mobile_open_url` to `http://` and `https://` schemes by default. Users who require other URL schemes can opt in by setting `MOBILEMCP_ALLOW_UNSAFE_URLS=1`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mobilenext/mobile-mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.50"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mobile-next/mobile-mcp/security/advisories/GHSA-5qhv-x9j4-c3vm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35394"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mobile-next/mobile-mcp/pull/299"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mobile-next/mobile-mcp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mobile-next/mobile-mcp/releases/tag/0.0.50"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-939" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-04T05:37:10Z",
    "nvd_published_at" : "2026-04-06T21:16:21Z"
  }
}