CVE-2023-31134: Tauri Tauri Open Redirect Vulnerability Possibly Vulnerability

MODERATE
Advisory Identifier: GHSA-4wm2-cwcf-wwvp
CVSS 4.8
CWE-601
Published
Advisory Summary

CVE-2023-31134 is a MODERATE (CVSS 4.8) tauri open redirect vulnerability possibly vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Tauri libraries in the crates.io ecosystem. The issue involves tauri open redirect vulnerability possibly exposes ipc to external sites. Remediation is available by upgrading affected packages to version 1.0.9, 1.1.4, 1.2.5.

CVE-2023-31134 at a Glance

CVE Identifier CVE-2023-31134
GHSA Identifier GHSA-4wm2-cwcf-wwvp
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Tauri
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-31134

To remediate this vulnerability, upgrade all affected Tauri dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tauri fixed: 1.0.9
Upgrade tauri to 1.0.9
tauri fixed: 1.1.4
Upgrade tauri to 1.1.4
tauri fixed: 1.2.5
Upgrade tauri to 1.2.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for tauri

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-31134, inspect your project dependencies for Tauri:

inspect dependencies for tauri

Analyze the terminal output to locate any version of Tauri in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Tauri, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The Tauri IPC is usually strictly isolated from external websites but the isolation can be bypassed by redirecting an existing Tauri window to an external website. This is either possible by an application implementing a feature for users to visit arbitrary websites or due to a bug allowing the open redirect[^open-redirect]. This allows the external website access to the IPC layer and therefore to all configured and exposed Tauri API endpoints and application specific implemented Tauri commands. ### Patches This issue has been patched in the latest release and was backported to all previous `1.x` releases. ### Workarounds Prevent arbitrary input in redirect features. Only allow trusted websites access to the IPC. ### References The feature to enable this behavior in a more constrained way was introduced in the `1.3` release and documentation around this can be found in the [documentation](https://tauri.app/v1/api/config/#securityconfig.dangerousremotedomainipcaccess). [^open-redirect]: [https://en.wikipedia.org/wiki/Open_redirect](https://en.wikipedia.org/wiki/Open_redirect)

CVE-2023-31134 Affected Tauri Versions

3 component(s)
Fixed Versions:
1.0.91.1.41.2.5
Product / Package Ecosystem Affected Versions Fixed Version
tauri
crates.io
≥ 1.0.0
< 1.0.9
1.0.9
tauri
crates.io
≥ 1.1.0
< 1.1.4
1.1.4
tauri
crates.io
≥ 1.2.0
< 1.2.5
1.2.5

References

Frequently Asked Questions

What is CVE-2023-31134?
CVE-2023-31134 is a security vulnerability in Tauri involving Tauri Open Redirect Vulnerability Possibly Exposes IPC to External Sites under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Tauri versions are affected?
Affected versions include releases prior to 1.0.9, 1.1.4, 1.2.5 across affected packages: tauri.
What version fixes CVE-2023-31134?
Upgrading to 1.0.9, 1.1.4, 1.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tauri affected?
Yes, tauri is affected in releases prior to 1.0.9, 1.1.4, 1.2.5. Upgrade your dependency to 1.0.9, 1.1.4, 1.2.5 or later.
What is the CVSS score of CVE-2023-31134?
CVE-2023-31134 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-31134?
CVE-2023-31134 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check crates.io dependencies for CVE-2023-31134?
Run the dependency tree command: 'inspect dependencies for tauri'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4wm2-cwcf-wwvp",
  "modified" : "2023-05-03T21:57:22Z",
  "published" : "2023-05-03T21:57:22Z",
  "aliases" : [ "CVE-2023-31134" ],
  "summary" : "Tauri Open Redirect Vulnerability Possibly Exposes IPC to External Sites",
  "details" : "### Impact\nThe Tauri IPC is usually strictly isolated from external websites but the isolation can be bypassed by redirecting an existing Tauri window to an external website. This is either possible by an application implementing a feature for users to visit arbitrary websites or due to a bug allowing the open redirect[^open-redirect].\n\nThis allows the external website access to the IPC layer and therefore to all configured and exposed Tauri API endpoints and application specific implemented Tauri commands.\n\n### Patches\nThis issue has been patched in the latest release and was backported to all previous `1.x` releases.\n\n### Workarounds\nPrevent arbitrary input in redirect features. Only allow trusted websites access to the IPC.\n\n### References\n\nThe feature to enable this behavior in a more constrained way was introduced in the `1.3` release and documentation around this can be found in the [documentation](https://tauri.app/v1/api/config/#securityconfig.dangerousremotedomainipcaccess).\n\n[^open-redirect]: [https://en.wikipedia.org/wiki/Open_redirect](https://en.wikipedia.org/wiki/Open_redirect)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tauri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tauri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tauri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tauri-apps/tauri/security/advisories/GHSA-4wm2-cwcf-wwvp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-31134"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tauri-apps/tauri/commit/9c0593c33af52cd9e00ec784d15f63efebdf039c"
  }, {
    "type" : "WEB",
    "url" : "https://en.wikipedia.org/wiki/Open_redirect"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tauri-apps/tauri"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tauri-apps/tauri/releases/tag/tauri-v1.0.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tauri-apps/tauri/releases/tag/tauri-v1.1.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tauri-apps/tauri/releases/tag/tauri-v1.2.5"
  }, {
    "type" : "WEB",
    "url" : "https://tauri.app/v1/api/config/#securityconfig.dangerousremotedomainipcaccess"
  }, {
    "type" : "WEB",
    "url" : "https://www.github.com/tauri-apps/tauri/commit/58ea0b45268dbd46cbac0ebb0887353d057ca767"
  }, {
    "type" : "WEB",
    "url" : "https://www.github.com/tauri-apps/tauri/commit/fa90214b052b1a5d38d54fbf1ca422b4c37cfd1f"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-03T21:57:22Z",
    "nvd_published_at" : "2023-05-09T14:15:13Z"
  }
}