CVE-2022-39270 MEDIUM

CVE-2022-39270: Arbitrary HTML injection in table-of-contents theme component in DiscoTOC

Vendor Discourse
Product DiscoTOC
Weakness CWE-79 · XSS
Published October 6, 2022
Last update April 23, 2025

CVSS base score

5.4/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 6, 2022 CVE published
April 23, 2025 Record updated

Related vulnerabilities

04Related CVE