Description
When a Tauri application uses the dialog plugin's file or folder picker, an attacker with JavaScript execution (XSS) can force the scope expansion to be recursive, granting read/write access to an entire directory tree after a single user click on a normal-looking OS file dialog. The user has no indication that recursive access was granted, and the expanded scope cannot be revoked for the lifetime of the application.
Published: 2026-09-23
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Full Directory Access
Action: Immediate Patch
AI Analysis

Impact

A flaw in the dialog plugin of Tauri applications lets an attacker who can execute JavaScript in the renderer process force a dialog to request recursive access to a directory. The attacker supplies a recursion flag that the plugin blindly accepts, granting the application permission to read and write every file in the selected directory tree. The user sees a normal OS file dialog and has no indication that recursive permissions were granted, and once granted the expanded scope cannot be revoked for the application's lifetime. This flaw is a classic example of improper access control (CWE‑732) and results in full control over an entire directory hierarchy, potentially exposing sensitive data or allowing further local exploitation.

Affected Systems

Any Tauri application that includes the tauri-plugin-dialog component is affected. No specific version numbers are listed in the advisory, but the issue applies to the dialog plugin as shipped with Tauri framework v2. Applications that use the dialog for file or folder selection are at risk unless the fix has been applied.

Risk and Exploitability

The vulnerability has a CVSS score of 7.7, indicating moderate‑to‑high severity, and an EPSS score of less than 1%, reflecting a low but non‑zero probability of exploitation. It is not yet listed in the CISA KEV catalog. Attackers would need to embed malicious JavaScript (e.g., via a cross‑site scripting vector) in the renderer to trigger the recursion flag, then prompt the user to click a standard file dialog. Once the dialog is accepted, the application receives recursive filesystem access without any revocation mechanism.

Generated by OpenCVE AI on September 23, 2026 at 15:01 UTC.

Remediation

Vendor Solution

The fix is to stop taking the recursion flag from the caller. Grant what was actually chosen: the one file, or the one folder and nothing below it. An app that genuinely needs a recursive grant can ask for one in its own Rust code, where the frontend cannot reach it.


OpenCVE Recommended Actions

  • Apply the latest version of tauri‑plugin‑dialog that removes the recursion flag from the caller and limits grants to the selected file or folder only.
  • If an upgrade is not immediately possible, ensure that JavaScript execution in the renderer is tightly restricted (e.g., via strict CSP, disabling remote content, and sanitizing user input) to prevent XSS attacks that could inject the recursion flag.
  • Verify that any custom code that requests file or folder access does not propagate a recursion flag from the frontend; grant recursive permissions only in trusted Rust backend code when absolutely required.

Generated by OpenCVE AI on September 23, 2026 at 15:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 23 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 23 Sep 2026 11:45:00 +0000

Type Values Removed Values Added
Description When a Tauri application uses the dialog plugin's file or folder picker, an attacker with JavaScript execution (XSS) can force the scope expansion to be recursive, granting read/write access to an entire directory tree after a single user click on a normal-looking OS file dialog. The user has no indication that recursive access was granted, and the expanded scope cannot be revoked for the lifetime of the application.
Title Tauri framework v2 Dialog plugin auto-expands the filesystem scope with attacker-controlled recursion
Weaknesses CWE-732
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: JFROG

Published:

Updated: 2026-09-23T14:22:55.260Z

Reserved: 2026-09-22T10:38:03.883Z

Link: CVE-2026-95627

cve-icon Vulnrichment

Updated: 2026-09-23T14:22:31.207Z

cve-icon NVD

Status : Deferred

Published: 2026-09-23T10:17:08.810

Modified: 2026-09-23T19:42:02.350

Link: CVE-2026-95627

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T15:15:05Z

Weaknesses
  • CWE-732

    Incorrect Permission Assignment for Critical Resource