yt-dlp@2026.3.29.233709.dev0

A feature-rich command-line audio/video downloader

  • latest version

    2026.8.4.234419.dev0

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    9 days ago

  • licenses detected

  • 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
    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

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

    Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via improper validation of input in the --write-link, --write-url-link, and --write-desktop-link options. An attacker can achieve arbitrary command execution by crafting malicious webpage_url or filename metadata that, when used to generate shortcut files, injects harmful URIs or desktop entry keys. This can result in execution of attacker-controlled commands if a user opens the generated shortcut file.

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

    Upgrade yt-dlp to version 2026.7.4 or higher.

    [,2026.7.4)
    • 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 --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.)

    How to fix Command Injection?

    Upgrade yt-dlp to version 2026.6.9 or higher.

    [2021.4.11,2026.6.9)
    • C
    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

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

    Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via insufficient sanitization of input passed to the aria2c external downloader. An attacker can achieve arbitrary file writes and potentially execute code by crafting malicious manifest files or metadata that inject options or URIs into the aria2c input file. This can result in immediate code execution on Windows platforms or on subsequent runs on other platforms.

    Note: This is only exploitable if aria2c is used as an external downloader for fragmented manifest formats, or if the user disables filename sanitization with the --no-windows-filename option.

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

    Upgrade yt-dlp to version 2026.6.9 or higher.

    [,2026.6.9)
    • H
    Improper Restriction of Names for Files and Other Resources

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

    Affected versions of this package are vulnerable to Improper Restriction of Names for Files and Other Resources via insufficient sanitization of file extensions during the file download. An attacker can cause arbitrary OS-shortcut files to be written to the user's filesystem by supplying a crafted media playlist or subtitle URI, potentially leading to code execution or phishing attacks if the user opens the malicious file.

    Note: This is only exploitable if the user passes options such as --write-subs, --write-auto-subs, --embed-subs, --write-thumbnail, --write-all-thumbnails, or --embed-thumbnail and downloads from untrusted sources.

    How to fix Improper Restriction of Names for Files and Other Resources?

    Upgrade yt-dlp to version 2026.6.9 or higher.

    [,2026.6.9)
    • M
    Reliance on Cookies without Validation and Integrity Checking

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

    Affected versions of this package are vulnerable to Reliance on Cookies without Validation and Integrity Checking via curl. An attacker can obtain sensitive cookie information by crafting a malicious website that embeds a specially crafted URL, causing cookies to be sent to unintended hosts during HTTP redirects or when download fragment hosts differ from their parent manifest's.

    How to fix Reliance on Cookies without Validation and Integrity Checking?

    Upgrade yt-dlp to version 2026.6.9 or higher.

    [2023.9.24,2026.6.9)