# CVE-2021-32764: YouTube Onebox susceptible to XSS

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2021-07-15T20:40:13.000Z
- Modified: 2026-09-10T16:00:44.314Z
- Also known as: BIT-DISCOURSE-2021-32764, GHSA-9x4c-29xg-56hw
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- discourse discourse: <= 2.7.5; up to 2.7.5; 2.8.0
- discourse (Bitnami): up to 2.7.5

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-9x4c-29xg-56hw> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32764> (web)

## Sources

- CVE List: [CVE-2021-32764](https://www.cve.org/CVERecord?id=CVE-2021-32764), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32764](https://nvd.nist.gov/vuln/detail/CVE-2021-32764), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2021-32764](https://osv.dev/vulnerability/BIT-DISCOURSE-2021-32764), Apache-2.0, modified 2026-09-10

---

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