Description
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.
Published: 2026-07-08
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in yt‑dlp’s shortcut‑generating options permits command injection by writing .url or .desktop files that contain attacker‑controlled metadata. Because the program does not properly escape the webpage_url or filename fields, an attacker can insert a file:// URI on Windows or a newline in a Linux desktop file that leads to arbitrary command execution when the file is opened. CWE‑74 describes this type of malicious unsanitized input.

Affected Systems

The flaw affects yt‑dlp prior to release 2026.7.4. Any user that runs download commands with the --write-link, --write-url-link, or --write-desktop-link flags while using an unpatched version is vulnerable. The issue applies to both Windows and Linux operating systems.

Risk and Exploitability

The CVSS base score is 7.5, indicating a high impact. The EPSS score is below 1%, indicating a low, but non‑zero, exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog, suggesting it has not been widely exploited in the wild. Exploitation requires that the attacker creates a shortcut file with malicious metadata and that a privileged or normal user opens that file, so the attack vector is local. If executed, the injected command runs with the privileges of the user who opens the shortcut.

Generated by OpenCVE AI on July 23, 2026 at 11:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade yt‑dlp to version 2026.7.4 or later
  • Remove or avoid using the --write-link, --write-url-link, or --write-desktop-link options unless you trust the source of the downloaded metadata
  • If upgrading is not immediately possible, never open the generated .url or .desktop files until you have verified that the content does not contain suspicious file:// or newline injection attempts

Generated by OpenCVE AI on July 23, 2026 at 11:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6v4j-43gg-vj32 yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output
History

Thu, 09 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Yt-dlp
Yt-dlp yt-dlp
Vendors & Products Yt-dlp
Yt-dlp yt-dlp

Wed, 08 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output
Weaknesses CWE-74
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T14:41:17.681Z

Reserved: 2026-06-16T21:48:43.124Z

Link: CVE-2026-55404

cve-icon Vulnrichment

Updated: 2026-07-09T14:31:17.020Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T11:30:17Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')