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 gfiletrash.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40354.json",
"cna_assigner": "mitre",
"cwe_ids": [
"CWE-61"
]
}{
"cpe": [
"cpe:2.3:a:flatpak:xdg-desktop-portal:*:*:*:*:*:*:*:*",
"cpe:2.3:a:flatpak:xdg-desktop-portal:1.21.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.20.4"
},
{
"introduced": "1.21.0"
},
{
"last_affected": "1.21.0"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}