CVE-2021-23414 Cross-site Scripting (XSS)
Attackers can execute arbitrary code via the track tag src attribute in the video.js library, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23414?
CVE-2021-23414 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 28 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package video.js before 7.14.3. The src attribute of track tag allows to bypass HTML escaping and execute arbitrary code.
Weakness: CWE-79
Which versions are affected by CVE-2021-23414?
2 open source packages ship an affected version, including video.js. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
video.js npm | All versions | 7.14.3 |
video.js npm | All versions | 7.14.3 |
Products include Fedoraproject Fedora, Videojs Video.js.
How do I fix CVE-2021-23414?
Upgrade video.js to 7.14.3 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-23414 being exploited?
There is no known exploitation of CVE-2021-23414 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-pp7m-6j83-m7r6.