CVE-2026-40354: Flatpak xdg-desktop-portal · UNIX Symbolic Link (Symlink) Following
Affects Flatpak xdg-desktop-portalSource CVE Database V5
Not known to be exploited · CVSS 2.9 Low : upgrade to 1.21.1 or 1.20.4 when convenient.
Data as of 30 Oct 2026, 11:34 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 2% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.21.1, 1.20.4
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 11 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade Flatpak xdg-desktop-portal to 1.21.1 or 1.20.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Flatpakxdg-desktop-portal | Affected
| Fixed in
|
| Flatpakxdg-desktop-portal | Affected
| Fixed in
|
GitHubflatpak/xdg-desktop-portalpkg:github/flatpak/xdg-desktop-portalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, restrict untrusted Flatpak applications from running or limit their permissions to reduce risk.
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.
References
- github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1 (opens in a new tab)
- github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4 (opens in a new tab)
- openwall.com/lists/oss-security/2026/04/10/14 (opens in a new tab)
- github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj (opens in a new tab)