Low

yt-dlp has dependency on potentially malicious third-party code in Douyu extractors

  • Disclosed: 08.07.2024
  • Updated: 11.10.2026 12:19

Impact

yt-dlp's DouyuTV and DouyuShow extractors used a cdn.bootcdn.net URL as a fallback for fetching a component of the crypto-js JavaScript library. When the Douyu extractor is used, yt-dlp extracts this JavaScript code and attempts to execute it externally using PhantomJS. bootcdn.net is owned by the bad actor responsible for the Polyfill JS supply chain attack that has been ongoing since at least June 2023. While there is no evidence that PhantomJS has been targeted by or is vulnerable to any attacks carried out by the Polyfill JS actor, there is the possibility that malicious JavaScript code may have been downloaded/cached by yt-dlp or executed by PhantomJS.

In order for this potential vulnerability to be exploited by any hypothetical attack, all 3 of the following conditions must be met:

  1. The user has PhantomJS installed on their system.
  2. The user passes a douyu.com or douyutv.com URL to yt-dlp as input, or passes a URL that redirects to one of these domains.
  3. cdnjs.cloudflare.com is unavailable or blocked at the time of extraction, necessitating the usage of the cdn.bootcdn.net fallback; or it had been unavailable during a previous run of the Douyu extractor and JavaScript code from cdn.bootcdn.net had been cached to disk.

Patches

yt-dlp version 2024.07.07 fixes this issue by removing the URL pointing to the malicious CDN and by invalidating any Douyu extractor cache data created by unpatched versions of yt-dlp.

Workarounds

It is recommended to upgrade yt-dlp to version 2024.07.07 as soon as possible.

For users not able to upgrade:

  • Avoid using the Douyu extractors (--ies default,-douyutv,-douyushow)
  • Uninstall (or do not install) PhantomJS

Acknowledgement

Thanks to @LeSuisse for reporting this promptly after bootcdn.net was discovered to be under control of the same bad actor behind the polyfill.io supply chain attack.

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) yt-dlp >= 2023.09.24, < 2024.07.07 2024.07.07

References

CVSS score -
Weakness (CWE)
-
Platform
Python (PyPI)
Package
yt-dlp
Disclosed
08.07.2024
Updated
11.10.2026 12:19

Sources and licenses

OSV / GitHub Advisory Database - GHSA-3v33-3wmw-3785 - CC BY 4.0

Vulnerability history: yt-dlp

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (12) in the archive
Total entries
12
First → latest
07.2023 07.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 8
  • Medium 3
  • Low 1

Disclosures per year

  1. 2023: 3
  2. 2024: 3
  3. 2025: 0
  4. 2026: 6
Severity:
  1. High · 7.5 ghsa-69qj-pvh9-c5wg >= 2021.4.11, < 2026.6.9 2026.6.9
  2. High · 8.3 CVE-2026-50574 < 2026.6.9 2026.6.9
  3. High · 8.8 CVE-2026-26331 >= 2023.06.21, < 2026.02.21 2026.02.21
  4. yt-dlp has dependency on potentially malicious third-party code in Douyu extractors this entry
    Low ghsa-3v33-3wmw-3785 >= 2023.09.24, < 2024.07.07 2024.07.07
  5. High · 8.3 CVE-2024-22423 >= 2021.04.11, < 2024.04.09 2024.04.09
  6. High · 8.3 CVE-2023-40581 >= 2021.04.11, < 2023.09.24 2023.09.24

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.