Command Injection Affecting yt-dlp package, versions [2021.4.11, 2026.6.9)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-YTDLP-17353929
  • published17 Jun 2026
  • disclosed16 Jun 2026
  • creditindependent-arg

Introduced: 16 Jun 2026

CVE NOT AVAILABLE CWE-78  (opens in a new tab)

How to fix?

Upgrade yt-dlp to version 2026.6.9 or higher.

Overview

yt-dlp is an A youtube-dl fork with additional features and patches

Affected versions of this package are vulnerable to Command Injection via --exec. An attacker can execute arbitrary commands on the user's system by crafting malicious metadata values containing shell operators, which are then unsafely interpolated into the command template when unsafe conversions are used.

Note: This is only expoitable when users pass an --exec command template containing unsafe conversions in their command or configuration file: %()s, %()a, %()r, %()j, %()S (including any of their flagged variants.)

CVSS Base Scores

version 4.0
version 3.1