CVE-2022-39270CWE-79

Arbitrary HTML injection in table-of-contents theme component in DiscoTOC

Medium · published October 6, 2022

CVSS v3.1
5.4
EPSS
0%
Percentile
40.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00482 · 40.6th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2022-10-06T00:00Z
EPSS history
Timeline
  • 06 OCT 00:00Z
    Arbitrary HTML injection in table-of-contents theme component in DiscoTOC
    cvelistv5