CVE-2026-26331
Last modified
CVE-2026-26331 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. yt-dlp is a command-line audio/video downloader. Starting in version 2023.06.21 and prior to version 2026.02.21, when yt-dlp's `--netrc-cmd` command-line option (or `netrc_cmd` Python API parameter) is used, an attacker could achieve arbitrary command injection on the user's system with a maliciously crafted URL. EPSS estimates a 1.60% chance of exploitation in the next 30 days.
Description
yt-dlp is a command-line audio/video downloader. Starting in version 2023.06.21 and prior to version 2026.02.21, when yt-dlp's `--netrc-cmd` command-line option (or `netrc_cmd` Python API parameter) is used, an attacker could achieve arbitrary command injection on the user's system with a maliciously crafted URL. yt-dlp maintainers assume the impact of this vulnerability to be high for anyone who uses `--netrc-cmd` in their command/configuration or `netrc_cmd` in their Python scripts. Even though the maliciously crafted URL itself will look very suspicious to many users, it would be trivial for a maliciously crafted webpage with an inconspicuous URL to covertly exploit this vulnerability via HTTP redirect. Users without `--netrc-cmd` in their arguments or `netrc_cmd` in their scripts are unaffected. No evidence has been found of this exploit being used in the wild. yt-dlp version 2026.02.21 fixes this issue by validating all netrc "machine" values and raising an error upon unexpected input. As a workaround, users who are unable to upgrade should avoid using the `--netrc-cmd` command-line option (or `netrc_cmd` Python API parameter), or they should at least not pass a placeholder (`{}`) in their `--netrc-cmd` argument.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Yt-Dlp Project | Yt-Dlp | >= 2023.06.21, < 2026.02.21 |
References
- https://github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21Product, Release Notes
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqmExploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-26331?
How severe is CVE-2026-26331?
How do I fix CVE-2026-26331?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-26326OpenClaw is a personal AI assistant. Prior to version 2026.2…4.3
- CVE-2026-26327OpenClaw is a personal AI assistant. Discovery beacons (Bonj…6.5
- CVE-2026-26328OpenClaw is a personal AI assistant. Prior to version 2026.2…6.5
- CVE-2026-26329OpenClaw is a personal AI assistant. Prior to version 2026.2…6.5
- CVE-2026-2633The Gutenberg Blocks with AI by Kadence WP plugin for WordPr…4.3
- CVE-2026-26330Envoy is a high-performance edge/middle/service proxy. Prior…7.5
- CVE-2026-26332vm2 is an open source vm/sandbox for Node.js. Prior to versi…10
- CVE-2026-26333Calero VeraSMART versions prior to 2022 R1 expose an unauthe…9.8
- CVE-2026-26334Calero VeraSMART versions prior to 2026 R1 contain hardcoded…7.8
- CVE-2026-26335Calero VeraSMART versions prior to 2022 R1 use static ASP.NE…9.8
- CVE-2026-26336Hyland Alfresco allows unauthenticated attackers to read arb…8.7
- CVE-2026-26337Hyland Alfresco Transformation Service allows unauthenticate…8.8
Are you affected by CVE-2026-26331?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
