Every CVESearch/Get API key

GHSA-3v33-3wmw-3785

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

No scoreFix available

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

What each source reports

GitHub AdvisoriesNo score

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

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

Record
GHSA-3v33-3wmw-3785
Updated
2026-11-02
OSVNo score

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

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

Record
GHSA-3v33-3wmw-3785
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
yt-dlp
PyPI
2023.09.24 up to 2024.07.07
2024.07.07
yt-dlp
PyPI
2023.09.24 up to 2024.07.07, plus listed versions
2023.10.132023.10.72023.11.13.232715.dev02023.11.13.5826.dev02023.11.14
Show 45 moreShow less
2023.11.15.232826.dev02023.11.162023.11.16.232727.dev02023.11.18.232705.dev02023.11.19.232719.dev02023.11.20.232729.dev02023.11.26.232703.dev02023.11.28.232715.dev02023.11.29.232714.dev02023.12.12.232727.dev02023.12.13.232710.dev02023.12.17.232710.dev02023.12.18.232711.dev02023.12.19.232701.dev02023.12.20.232717.dev02023.12.21.232720.dev02023.12.22.232735.dev02023.12.24.232657.dev02023.12.26.232752.dev02023.12.302023.12.30.232719.dev02023.12.31.232713.dev02023.12.5.232702.dev02023.12.6.232721.dev02023.9.242024.1.14.232710.dev02024.1.18.232658.dev02024.1.19.232708.dev02024.1.2.232714.dev02024.1.20.232722.dev02024.1.21.232719.dev02024.1.22.232713.dev02024.1.23.232723.dev02024.1.28.232706.dev02024.1.29.232706.dev02024.1.31.232703.dev02024.1.5.232702.dev02024.1.8.232709.dev02024.1.9.232723.dev02024.2.13.232701.dev02024.2.14.232704.dev02024.2.15.232705.dev02024.2.16.232705.dev02024.2.17.232706.dev02024.2.18.232707.dev0
2024.07.07

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

GHSA-3v33-3wmw-3785 is a vulnerability with no CVSS score yet in yt-dlp, published July 8, 2024. No source lists public exploit code. Fixed in yt-dlp 2024.07.07.

References

This page doesn't list everything

Left out here: 85 versions. The JSON record has them.

MoveEnter Open