{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-39270","published":"2022-10-06T18:16:14.227000Z","last_modified":"2026-06-17T04:58:02.530000Z","status":"Modified","cvss":{"version":"3.1","score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:discourse:discotoc:*:*:*:*:*:*:*:*","part":"a","vendor":"discourse","product":"discotoc","version_end_excluding":"2.1.0"}],"cpes_truncated":false,"vendors":["discourse"],"products":["discourse/discotoc"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00568,"percentile":0.40919,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":32,"links":{"html_es":"/es/cve/CVE-2022-39270/","html_en":"/en/cve/CVE-2022-39270/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39270","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39270"},"untrusted":{"vendor_name":"Discourse","product_name":"Discotoc","desc_en":"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":[{"untrusted_vendor":"discourse","untrusted_product":"DiscoTOC","versions":[]}],"references":[{"url":"https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h","tags":["Third Party Advisory"]}]}}