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

Medium 5.4 Published Updated

Contributors can inject malicious scripts via shortcode attributes or video metadata, leading to stored XSS attacks against site visitors.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-24471?

CVE-2021-24471 is a medium-severity cross-site scripting vulnerability in Unknown YouTube Embed, published on 16 Aug 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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).

Weakness: CWE-79

Which versions are affected by CVE-2021-24471?

It affects 1 product.

Products include Youtube Embed Project Youtube Embed.

How do I fix CVE-2021-24471?

No fix has been published for CVE-2021-24471 yet. Limit exposure of the affected software until one is available.

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-24471 being exploited?

There is no known exploitation of CVE-2021-24471 in the wild and no public exploit code.

Sources

Also known as GHSA-43j4-9r7h-9m29.

Is CVE-2021-24471 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free