CVE-2026-55404: yt-dlp Command Injection via Improper Shortcut Output Sanitization

yt-dlp Updated 25 Jul 2026

Summary

24/07/2026
Yes i
High
7.5

CVE-2026-55404: yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output. Affects yt-dlp versions < 2026.7.4. Fixed in 2026.7.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

yt-dlp is a popular command-line program for downloading videos from various platforms. It is a fork of youtube-dl and offers additional features and improvements. The tool allows users to download media content and create shortcut files for easy access to the downloaded content. However, a recent vulnerability has been identified that exposes users to potential command injection attacks through improperly sanitized output when using specific options.

Vulnerability Detail

The vulnerability arises when users utilize the yt-dlp options --write-link, --write-url-link, or --write-desktop-link. These options can generate shortcut files that may contain malicious metadata payloads crafted by an attacker. If a user opens these files, it could lead to arbitrary command execution on their system. The vulnerability is particularly concerning for Windows users, where a crafted file URI could execute remote executables, and for Linux users, where unsanitized filename values could allow shell command injection.

How To Fix

Latest published version: 2026.10.21.233146.dev0 as of 22 Oct 2026

pip install --upgrade "yt-dlp==2026.10.21.233146.dev0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2026.7.4

This is the first release that contains the fix.

pip install --upgrade "yt-dlp==2026.7.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not possible, users should avoid using the --write-link, --write-url-link, or --write-desktop-link options until the package is updated.

Conclusion

The yt-dlp vulnerability CVE-2026-55404 poses a significant risk of command injection through improperly sanitized shortcut outputs. Users are strongly advised to upgrade to the patched version to mitigate this risk. For those unable to upgrade immediately, avoiding the use of specific options is recommended.

See every vulnerability recorded for yt-dlp →

Share this vulnerability

FAQ

The vulnerability allows for command injection through improperly sanitized shortcut files created by yt-dlp.

Any version prior to 2026.07.04 is vulnerable. You can check your version by running 'yt-dlp --version'.

Both Windows and Linux platforms are affected, with different exploitation methods for each.

Yes, you can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software without requiring access to the code.

You can use the Vulert playground at Vulert Scanner to check if your application is affected without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for yt-dlp.

How To Fix

Latest published version: 2026.10.21.233146.dev0 as of 22 Oct 2026

pip install --upgrade "yt-dlp==2026.10.21.233146.dev0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2026.7.4

This is the first release that contains the fix.

pip install --upgrade "yt-dlp==2026.7.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback