CVE-2026-50023Yt-dlp Project Yt-dlp
Critical 9.6 No auth needed
Follow: this CVE · Yt-dlp Project · Yt-dlp Project Yt-dlp We alert you by email or Slack (account required).
- Priority
- 73
- CVSS 3.1
- 9.6
- EPSS
- —
- Auth required
- No
- Published
- Jun 23, 2026
- Updated
- Jun 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-641
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
What happens
yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, a vulnerability exists in yt-dlp that allows a remote attacker to write arbitrary OS-shortcut files (such as .desktop, .url, .webloc) to the user's filesystem, bypassing the remediation for CVE-2024-38519. The allowlist explicitly included the unsafe extensions .desktop, .url, and .webloc so that the functionality of the --write-link option (and its variants) could be preserved. These allowlist inclusions can be exploited by an attacker to write malicious OS-shortcut files in the context of a media or subtitles download. This vulnerability is fixed in 2026.06.09.
What to do
- Apply the vendor's security update for Yt-dlp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | yt-dlp |
< 2026.6.9 |
2026.6.9 |
pip install "yt-dlp>=2026.6.9" |
| PyPI | yt-dlp |
< 2026.6.9 |
2026.6.9 |
pip install "yt-dlp>=2026.6.9" |
Per OSV / GitHub Advisories (GHSA-c6mh-fpjc-4pr3, PYSEC-2026-3430). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yt-dlp_project | yt-dlp | < 2026.06.09 |
Official advisories
- Security update for yt-dlp · SUSE · openSUSE-SU-2026:21163-1 · Jun 29, 2026 Critical
- python313-yt-dlp-2026.06.09-1.1 on GA media · SUSE · openSUSE-SU-2026:11019-1 · Jun 12, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Release Notes
- github.com Patch
- github.com Product Release Notes
- github.com Exploit Mitigation Patch