CVE-2021-3780 Cross-site Scripting (XSS) - Stored in chocobozzz/peertube
Attackers can inject malicious scripts into PeerTube pages, potentially stealing user sessions or executing code in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-3780?
CVE-2021-3780 is a high-severity cross-site scripting vulnerability in chocobozzz/peertube, published on 15 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
peertube is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Weakness: CWE-79
Which versions are affected by CVE-2021-3780?
2 open source packages ship an affected version, including peertube. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
peertube npm | All versions | 3.4.0 |
peertube npm | All versions | 3.4.0 |
Products include Framasoft Peertube.
How do I fix CVE-2021-3780?
Upgrade peertube to 3.4.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-3780 being exploited?
There is no known exploitation of CVE-2021-3780 in the wild and no public exploit code.
Other vulnerabilities in chocobozzz/peertube
- CVE-2022-0881 Insecure Storage of Sensitive Information in chocobozzz/peertube
- CVE-2025-32947 PeerTube ActivityPub Crawl Infinite Loop DoS
- CVE-2025-32948 PeerTube ActivityPub Playlist Creation Blind SSRF and DoS
- CVE-2025-32944 PeerTube User Import Authenticated Persistent Denial of Service
- CVE-2025-32949 PeerTube User Import Authenticated Resource Exhaustion
Sources
Also known as GHSA-f2c5-997w-7f5c.