Skip to content
HighVulnerability

GHSA-3p2m-h2v6-g9mx: @mobilenext/mobile-mcp alllows arbitrary file write via Path Traversal in mobile screen capture tools

Published
Record updated
View JSON
Affected
  • @mobilenext/mobile-mcp < 0.0.49
Fixed in
0.0.49
  • released March 24, 2026, 3 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

The @mobilenext/mobile-mcp server has a path traversal flaw in the mobile_save_screenshot and mobile_start_screen_recording tools. The saveTo and output parameters are passed directly to filesystem write operations (fs.writeFileSync in src/server.ts) with no path validation, so an attacker can write files outside the intended workspace.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.