CVE-2026-40354

Low

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.

SeverityLow
CVSS2.9
Exploit probability—
ProductFlatpak Xdg-desktop-portal
PublishedApr 11, 2026
First seenApr 11, 2026
Weakness typeCWE-61CWE-61

How to fix

Update
  • flatpak xdg-desktop-portal1.20.4 or later

Affected products

ProductAffected versionsFixed in
flatpak xdg-desktop-portalv < 1.20.4, 1.21.01.20.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.