Skip to main content
VulnerabilityPublished Updated

CVE-2026-40354: Flatpak xdg-desktop-portal · UNIX Symbolic Link (Symlink) Following

Affects Flatpak xdg-desktop-portalSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
2.9Low
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Flatpakxdg-desktop-portalAffected
  • >=1.21.0 <1.21.1
Fixed in
  • 1.21.1
Flatpakxdg-desktop-portalAffected
  • <1.20.4
Fixed in
  • 1.20.4
GitHubflatpak/xdg-desktop-portalpkg:github/flatpak/xdg-desktop-portalOther threatsAffected
  • =0
  • =1.21.0
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

Community reviews

Loading reviews…