{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2026.07.04"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fdec00e0bf530dc6c3cc7b1dd780e95d9ae460e9"
            },
            {
              "fixed": "b6590aaa1e3808155d69c9a79a797ae484163789"
            }
          ],
          "repo": "https://github.com/yt-dlp/yt-dlp",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6v4j-43gg-vj32"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-74"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55404.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "2026.7.4"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "yt-dlp and youtube-dl are command-line audio/video downloaders. Prior to 2026.7.4, the --write-link, --write-url-link, and --write-desktop-link options can write .url or .desktop shortcut files using attacker-controlled webpage_url or filename metadata without sufficient validation or escaping, allowing malicious file:// URI injection on Windows or newline-based desktop entry key injection on Linux that can execute commands if the generated shortcut is opened. This issue is fixed in version 2026.7.4.",
  "id": "CVE-2026-55404",
  "modified": "2026-07-16T03:31:14.115892448Z",
  "published": "2026-07-08T19:36:48.792Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/yt-dlp/yt-dlp/releases/tag/2026.07.04"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55404.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-6v4j-43gg-vj32"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55404"
    },
    {
      "type": "FIX",
      "url": "https://github.com/yt-dlp/yt-dlp/commit/b6590aaa1e3808155d69c9a79a797ae484163789"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output"
}