# CVE-2021-24471: YouTube Embed < 5.2.2 - Contributor+ Stored XSS

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-16T10:48:22.000Z
- Modified: 2026-06-17T03:40:05.443Z
- Weaknesses: CWE-79
- Assigned by: WPScan

## Description

The YouTube Embed WordPress plugin before 5.2.2 does not validate, escape or sanitise some of its shortcode attributes, leading to Stored XSS issues by 1. using w, h, controls, cc_lang, color, language, start, stop, or style parameter of youtube shortcode, 2. by using style, class, rel, target, width, height, or alt parameter of youtube_thumb shortcode, or 3. by embedding a video whose title or description contains XSS payload (if API key is configured).

(As written by CVE List.)

## Affected

- Unknown YouTube Embed: from 5.2.2 before 5.2.2
- youtube_embed_project youtube_embed: before 5.2.2

## Every score

- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:N/AC:H/Au:S/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/a8ccb09a-9f8c-448f-b2d0-9b01c3a748ac> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24471](https://www.cve.org/CVERecord?id=CVE-2021-24471), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24471](https://nvd.nist.gov/vuln/detail/CVE-2021-24471), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24471 · Whole record: https://cve.day/CVE-2021-24471.json · Rebuilt by cve.day 2026-11-25T22:58:03.244Z
