Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40354: 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

11
Routine
LOW 2.9UPGRADE

CVE-2026-40354 is a low-severity flaw (CVSS 2.9) affecting xdg-desktop-portal. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score2.9 (Low)
Attack vectorLocal
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.1% (top 98%)
CISA exploited listNo
WeaknessCWE-61
Published2026-04-11
Last modified2026-10-26
Publisher (CNA): MITRE · Vendor: flatpak

Share: LinkedIn · X · Reddit

Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

flatpak xdg-desktop-portal UPGRADE
Affected: < 1.20.4 · 1.21.0
Fixed in: 1.20.4
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy xdg-desktop-portal || rpm -q xdg-desktop-portal || xdg-desktop-portal --version
2. UPGRADE to 1.20.4 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade xdg-desktop-portal
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade xdg-desktop-portal
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40354?

xdg-desktop-portal: upgrade to 1.20.4. Exact commands for each OS are on this page.

Is CVE-2026-40354 being exploited?

CVE-2026-40354 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40354 affect?

CVE-2026-40354 affects xdg-desktop-portal. Severity is low (CVSS 2.9). 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.

How urgent is CVE-2026-40354?

Priority 11/100. No elevated risk signals yet.

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.