{"answers":{"affected":"4 open source packages ship an affected version, including tauri.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35222 exists.","fix":"Upgrade tauri to a fixed version for your release line: 1.6.7 or 2.0.0-beta.20.","what":"CVE-2024-35222 is a medium-severity vulnerability in tauri-apps tauri, published on 23 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-35222 and fix it if it is affected.\n\nWhat it is: CVE-2024-35222 is a medium-severity vulnerability in tauri-apps tauri, published on 23 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35222 exists.\n\nAffected packages and fixed versions:\n- tauri (crates.io): affected all versions; fixed in 1.6.7\n- tauri (crates.io): affected all versions; fixed in 1.6.7\n- tauri (crates.io): affected from 2.0.0-beta.0; fixed in 2.0.0-beta.20\n- tauri (crates.io): affected from 2.0.0-beta.0; fixed in 2.0.0-beta.20\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35222/ (Markdown: https://insights.sbomify.com/CVE-2024-35222/index.md)","id":"CVE-2024-35222","markdown":"https://insights.sbomify.com/CVE-2024-35222/index.md","name":"CVE-2024-35222","record":{"aliases":["GHSA-57fm-592m-34r7"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Tauri desktop framework","requires_auth":"low_privilege","summary":"Attackers can bypass origin checks to invoke privileged Tauri IPC commands via malicious iframes, potentially executing arbitrary actions or modifying data.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"description":"Tauri is a framework for building binaries for all major desktop platforms. Remote origin iFrames in Tauri applications can access the Tauri IPC endpoints without being explicitly allowed in the `dangerousRemoteDomainIpcAccess` in v1 and in the `capabilities` in v2. Valid commands with potentially unwanted consequences (\"delete project\", \"transfer credits\", etc.) could be invoked by an attacker that controls the content of an iframe running inside a Tauri app. This vulnerability has been patched in versions 1.6.7 and 2.0.0-beta.19.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"iFrames Bypass Origin Checks for Tauri API Access Control","id":"CVE-2024-35222","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Dapr API Token Exposure","id":"CVE-2024-35223"},"packages":[{"ecosystem":"crates.io","fixed":["1.6.7"],"introduced":["0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-57fm-592m-34r7"},{"ecosystem":"crates.io","fixed":["1.6.7"],"introduced":["0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-57fm-592m-34r7"},{"ecosystem":"crates.io","fixed":["2.0.0-beta.20"],"introduced":["2.0.0-beta.0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-57fm-592m-34r7"},{"ecosystem":"crates.io","fixed":["2.0.0-beta.20"],"introduced":["2.0.0-beta.0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-57fm-592m-34r7"}],"prev":{"headline":"Denial of service when publishing a package on rubygems.org","id":"CVE-2024-35221"},"products":["tauri"],"published":"2024-05-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["tauri-apps"]},"summary":"Attackers can bypass origin checks to invoke privileged Tauri IPC commands via malicious iframes, potentially executing arbitrary actions or modifying data.","url":"https://insights.sbomify.com/CVE-2024-35222/"}