CVE-2026-50023
Description
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.
Weakness
- CWE-641: Improper Restriction of Names for Files and Other Resources
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-06-25 |
Timeline
- 2026-06-16GitHub advisory published (GHSA-c6mh-fpjc-4pr3)7 days before publication
- 2026-06-23Published by the CNA16:08 UTC
- 2026-06-25CISA SSVC decision recorded2 days after publication
Exploit and advisory records
GitHub advisory GHSA-c6mh-fpjc-4pr3, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI yt-dlp | before 2026.6.9 | 2026.6.9 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| yt-dlp_project yt-dlp | before 2026.06.09fixed in 2026.06.09 | 2026.06.09 |
References
- https://github.com/yt-dlp/yt-dlp/commit/e578e265f7c6ca94a74b30e0d8d6196a4d19fb6a
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-c6mh-fpjc-4pr3
- https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2026.06.09.230517
- https://github.com/yt-dlp/yt-dlp/releases/tag/2026.06.09
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-50023'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-50023'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-50023'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-50023'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).