Vulnerabilities · 2022 · Discourse
CVE-2022-39270
Discourse Discotoc vulnerability
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.
Affected products
Discotoc. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Discourse Discotoc runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Discourse products
CVE-2026-24742CVE-2026-23743CVE-2026-21865CVE-2025-69289CVE-2025-69218CVE-2025-68934CVE-2025-68933CVE-2025-68666All 197
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.