Skip to content
DayZeroHub
High Not yet writtenCVSS 8.6GHSA-jwgx-mp9m-jwcrCVE-2026-58192

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

@appium/storage-plugin

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-58192: high-severity vulnerability (CVSS 8.6) in @appium/storage-plugin.

What happened

Original description from the source: ## 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: `s…

Why it matters

High severity, CVSS 8.6.

Affected products and versions

@appium/storage-plugin < 1.1.6 (fixed in 1.1.6)

ProductVersionsFixed in
@appium/storage-plugin< 1.1.61.1.6

Action recommended by the source

Upgrade to a fixed version: 1.1.6.

Fixed in: 1.1.6

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22, CWE-73

Relevant change history

  1. Published

    Preliminary advisory published.