{"schemaVersion":3,"id":"CVE-2026-26331","aliases":["MGASA-2026-0054","GHSA-g3gw-q23r-pgqm","PYSEC-2026-3432","UBUNTU-CVE-2026-26331","DEBIAN-CVE-2026-26331"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-02-24T02:23:40.858Z","modified":"2026-02-24T20:08:47.720Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02056,"percentile":0.81105,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.45999999999999996,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01596},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01624,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02056,"percentile":0.81105}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01596,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01624,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02011,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02056,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02056,"percentile":0.81105}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_YT-DLP_YT-DLP","name":"Yt Dlp","source":"github","url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-42h4-v29r-42qg","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"debian","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/yt-dlp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2026.02.21-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2026.02.21-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/yt-dlp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"mageia","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/yt-dlp","purlType":"rpm","versions":[{"text":"< 2026.03.03-1.1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2026.03.03-1.1.mga9","eol":null,"hubHref":null},{"vendor":"PyPI","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/yt-dlp","purlType":"pypi","versions":[{"text":"≥ 2023.06.21, < 2026.02.21","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2023.06.21, < 2026.02.21","eol":null,"hubHref":null},{"vendor":"yt-dlp_project","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2023.06.21, < 2026.02.21","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2023.06.21, < 2026.02.21","eol":null,"hubHref":"/vendor/yt-dlp_project/yt-dlp"},{"vendor":"yt-dlp","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2023.06.21, < 2026.02.21","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2023.06.21, < 2026.02.21","eol":null,"hubHref":"/vendor/yt-dlp/yt-dlp"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqm","label":"github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqm","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","REPORT","Exploit","Mitigation","Vendor Advisory"]},{"url":"https://github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a","label":"github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Patch"]},{"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21","label":"github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Product","Release Notes"]},{"url":"https://advisories.mageia.org/MGASA-2026-0054.html","label":"advisories.mageia.org/MGASA-2026-0054.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=35183","label":"bugs.mageia.org/show_bug.cgi?id=35183","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://github.com/yt-dlp/yt-dlp/compare/2026.02.04...2026.03.03","label":"github.com/yt-dlp/yt-dlp/compare/2026.02.04...2026.03.03","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26331","label":"nvd.nist.gov/vuln/detail/CVE-2026-26331","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/yt-dlp/yt-dlp","label":"github.com/yt-dlp/yt-dlp","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/yt-dlp","label":"pypi.org/project/yt-dlp","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-g3gw-q23r-pgqm","label":"github.com/advisories/GHSA-g3gw-q23r-pgqm","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-26331","label":"ubuntu.com/security/CVE-2026-26331","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-26331","label":"www.cve.org/CVERecord?id=CVE-2026-26331","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-26331","label":"security-tracker.debian.org/tracker/CVE-2026-26331","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-02-24T02:23:40.858Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-02-24T20:08:47.720Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":46,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T03:15:33.638Z","stale":false,"partial":false}}