Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Discourse | Discotoc | < 2.1.0 |
Related Weaknesses (CWE)
References
- https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b29PatchThird Party Advisory
- https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32hThird Party Advisory
- https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b29PatchThird Party Advisory
- https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32hThird Party Advisory
FAQ
What is CVE-2022-39270?
CVE-2022-39270 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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...
How severe is CVE-2022-39270?
CVE-2022-39270 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-39270?
Check the references section above for vendor advisories and patch information. Affected products include: Discourse Discotoc.