CVE-2023-31134: Tauri Tauri Open Redirect Vulnerability Possibly Vulnerability
MODERATECVE-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
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).
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.
Upgrade tauri to 1.0.9
Upgrade tauri to 1.1.4
Upgrade tauri to 1.2.5
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
CVE-2023-31134 Affected Tauri Versions
3 component(s)| 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?
Which Tauri versions are affected?
What version fixes CVE-2023-31134?
Is tauri affected?
What is the CVSS score of CVE-2023-31134?
What CWE is associated with CVE-2023-31134?
How can I check crates.io dependencies for CVE-2023-31134?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}