5.4medium
Arbitrary HTML injection in table-of-contents theme component in DiscoTOC
- Severity
- 5.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.51% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| discourse DiscoTOC | < 2.1.0, before 2.1.0 | CVE List, NVD |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
DiscoTOC es un componente temático de Discourse que genera una tabla de contenidos para los temas. Los usuarios que pueden crear temas en categorías habilitadas para TOC (y presentan un nivel confiable suficiente - configurado en los ajustes del componente) son capaces de inyectar HTML arbitrario en la página de ese tema. El problema ha sido corregido en la rama "main". Los administradores pueden actualizar el componente del tema mediante de la Interfaz de Usuario de administración (Customize -> Themes -> Components -> DiscoTOC -> Check for Updates). Como alternativa, los administradores pueden deshabilitar temporalmente el componente temático DiscoTOC
References
| https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h | third-party-advisory | |
| https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192 | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39270 changed 2025-04-23 | CVE Terms of Use |
| NVD | CVE-2022-39270 changed 2026-06-17 | Public domain |