XSS in Discourse Discotoc

CVE-2022-39270

DiscoTOC is a Discourse theme component that generates a table of contents for topics. Users that can create topics in TOC-enabled categories (and have sufficient trust level - configured in component's settings) are able to inject arbitrary HTML on that topic's page. The issue has been fixed on the `main` branch. Admins can update the theme component through the admin UI (Customize -> Themes -> Components -> DiscoTOC -> Check for Updates). Alternatively, admins can temporarily disable the DiscoTOC theme component.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.004 (31.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-39270?
CVE-2022-39270 is a medium-severity vulnerability in Discourse Discotoc, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-10-06.
How severe is CVE-2022-39270?
Medium severity. CVSS v3 base score is 5.4 out of 10.