{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40354 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-40354 is a low-severity path traversal vulnerability in Flatpak xdg-desktop-portal, published on 11 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40354 and fix it if it is affected.\n\nWhat it is: CVE-2026-40354 is a low-severity path traversal vulnerability in Flatpak xdg-desktop-portal, published on 11 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40354 in the wild and no public exploit code.\n\nAffected product: Flatpak xdg-desktop-portal. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-40354/ (Markdown: https://insights.sbomify.com/CVE-2026-40354/index.md)","id":"CVE-2026-40354","markdown":"https://insights.sbomify.com/CVE-2026-40354/index.md","name":"CVE-2026-40354","record":{"aliases":["DEBIAN-CVE-2026-40354","GHSA-rqr9-jwwf-wxgj","GHSA-v5fw-rcv7-v6f3","OESA-2026-2182","OESA-2026-2183","OESA-2026-2184","SUSE-SU-2026:2712-1","UBUNTU-CVE-2026-40354"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux desktop portal","requires_auth":"none","summary":"A malicious Flatpak application can trash arbitrary files on the host system via a symlink attack, requiring users to update xdg-desktop-portal.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"xdg-desktop-portal","vendor":"flatpak"}],"cvss":{"score":2.9,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","ecosystems":["SUSE:Linux Enterprise Module for Desktop Applications 15 SP7"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in xdg-desktop-portal","id":"CVE-2026-40354","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":1,"n_references":4,"next":{"headline":"Null dereference in Kerberos 5","id":"CVE-2026-40355"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP7","fixed":["1.18.2-150600.4.6.1"],"introduced":["0"],"last_affected":[],"package":"xdg-desktop-portal","purl":"pkg:rpm/suse/xdg-desktop-portal\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP7","source":"SUSE-SU-2026:2712-1"}],"prev":{"headline":"wger: Stored XSS via Unescaped License Attribution Fields","id":"CVE-2026-40353"},"products":["xdg-desktop-portal"],"published":"2026-04-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-15","vendors":["Flatpak"]},"summary":"A malicious Flatpak application can trash arbitrary files on the host system via a symlink attack, requiring users to update xdg-desktop-portal.","url":"https://insights.sbomify.com/CVE-2026-40354/"}