{"id":"CVE-2022-39270","published":"2022-10-06T00:00:00Z","modified":"2025-04-23T16:52:41Z","title":"Arbitrary HTML injection in table-of-contents theme component in DiscoTOC","vendor":"discourse","product":"DiscoTOC","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00494,"percentile":0.43303,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h","tags":[]},{"url":"https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192","tags":[]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":8.66},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"DiscoTOC","versions":["< 2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:56:49.066432Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-41777","exploited":false,"provenance":"source"}}