{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "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"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f5aec228c9eb0c9a70eadd6424d92c0ca8a78247"
            },
            {
              "introduced": "d49f4cb0ea1d6ddc02949a9631626668cd7fc4fc"
            },
            {
              "fixed": "ced43a7c1c61083fac012a7c7991482ed9798fa3"
            }
          ],
          "repo": "https://github.com/flatpak/xdg-desktop-portal",
          "type": "GIT"
        }
      ],
      "versions": [
        "1.21.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-rqr9-jwwf-wxgj"
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "cwe_ids": [
      "CWE-61"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40354.json"
  },
  "details": "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.",
  "id": "CVE-2026-40354",
  "modified": "2026-07-08T05:37:03.256342396Z",
  "published": "2026-04-11T00:29:03.467Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4"
    },
    {
      "type": "WEB",
      "url": "https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1"
    },
    {
      "type": "WEB",
      "url": "https://www.openwall.com/lists/oss-security/2026/04/10/14"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40354.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40354"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ]
}