CVE-2021-32764 YouTube Onebox susceptible to XSS

High 8.1 Published Updated

Attackers can execute arbitrary scripts via YouTube Oneboxes in Discourse if the Content Security Policy is disabled or modified.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-32764?

CVE-2021-32764 is a high-severity cross-site scripting vulnerability in Discourse Discourse, published on 15 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Discourse is an open-source discussion platform. In Discourse versions 2.7.5 and prior, parsing and rendering of YouTube Oneboxes can be susceptible to XSS attacks. This vulnerability only affects sites which have modified or disabled Discourse's default Content Security Policy. The issue is patched in `stable` version 2.7.6, `beta` version 2.8.0.beta3, and `tests-passed` version 2.8.0.beta3. As a workaround, ensure that the Content Security Policy is enabled, and has not been modified in a way which would make it more vulnerable to XSS attacks.

Weakness: CWE-79

Which versions are affected by CVE-2021-32764?

1 open source package ship an affected version, including discourse. It affects 1 product.

PackageAffectedFixed in
discourse BitnamiAll versions to 2.7.5None

Products include Discourse Discourse.

How do I fix CVE-2021-32764?

No fix has been published for CVE-2021-32764 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-32764 being exploited?

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

All Discourse Discourse vulnerabilities

Sources

Also known as BIT-discourse-2021-32764, GHSA-9x4c-29xg-56hw.

Is CVE-2021-32764 in your software?

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

Check your SBOMs for free