---
title: "CVE-2026-40354"
canonical_url: "https://pkgseek.com/security/CVE-2026-40354"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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 the host context via a symlink attack on g_file_trash.

CVE-2026-40354 is rated MEDIUM (6.3), with 9 indexed affected package builds across 2 distributions.

- **Severity / Score**: MEDIUM (6.3)
- **Affected builds**: 9
- **Affected distros**: 2
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | xdg-desktop-portal | 1.20.3+ds-1 | — |
| Debian | trixie | xdg-desktop-portal-dev | 1.20.3+ds-1 | — |
| Debian | trixie | xdg-desktop-portal-tests | 1.20.3+ds-1 | — |
| Ubuntu | focal | xdg-desktop-portal | 1.6.0-1 | — |
| Ubuntu | focal | xdg-desktop-portal-dev | 1.6.0-1 | — |
| Ubuntu | jammy | xdg-desktop-portal | 1.14.3-0ubuntu2 | — |
| Ubuntu | jammy | xdg-desktop-portal-dev | 1.14.3-0ubuntu2 | — |
| Ubuntu | noble | xdg-desktop-portal | 1.18.3-1ubuntu1 | — |
| Ubuntu | noble | xdg-desktop-portal-dev | 1.18.3-1ubuntu1 | — |
