yt-dlp@2024.5.13.232704.dev0 vulnerabilities

A feature-rich command-line audio/video downloader

  • latest version

    2025.12.13.232949.dev0

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    8 hours ago

  • licenses detected

    • [2024.2.13.232701.dev0,2025.9.7.655.dev0)
  • Direct Vulnerabilities

    Known vulnerabilities in the yt-dlp package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Command Injection

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

    Affected versions of this package are vulnerable to Command Injection via the function parse_cmd in the class ExecPP, which the --exec process on Windows uses with the default placeholder. An attacker can execute arbitrary commands by supplying a crafted filepath that is insufficiently sanitized.

    Note: Users should always be careful when using --exec, because using unvalidated input in shell commands is inherently dangerous.

    How to fix Command Injection?

    Upgrade yt-dlp to version 2025.7.21 or higher.

    [,2025.7.21)
    • M
    Directory Traversal

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

    Affected versions of this package are vulnerable to Directory Traversal in the prepend_extension() function, when downloading files using the --write-subs, --write-auto-subs, --all-subs or --write-srt options to include subtitles. An attacker can inject a path traversal string into the sub_format parameter, which is interpolated into a string in certain extractors without checks or sanitization. By convincing a user to follow a link preloaded with a malicious parameter value an attacker can write arbitrary files, which may later be executed on the target system.

    Note: This vulnerability is only exploitable on Windows.

    How to fix Directory Traversal?

    Upgrade yt-dlp to version 2024.7.1 or higher.

    [,2024.7.1)