{"api_version":"1","generated_at":"2026-07-23T13:25:48+00:00","cve":"CVE-2022-39270","urls":{"html":"https://cve.report/CVE-2022-39270","api":"https://cve.report/api/cve/CVE-2022-39270.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39270","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39270"},"summary":{"title":"CVE-2022-39270","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-10-06 18:16:00","updated_at":"2022-11-10 04:15:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192","name":"https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192","refsource":"MISC","tags":[],"title":"SECURITY: Render TOC items as plain text (#44) · discourse/DiscoTOC@f80c215 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39270","name":"https://www.cve.org/CVERecord?id=CVE-2022-39270","refsource":"MISC","tags":[],"title":"cve-website","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h","name":"https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h","refsource":"CONFIRM","tags":[],"title":"Arbitrary HTML injection in table-of-contents theme component · Advisory · discourse/DiscoTOC · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39270","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"39270","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discotoc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-39270","STATE":"PUBLIC","TITLE":"Arbitrary HTML injection in table-of-contents theme component in DiscoTOC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"DiscoTOC","version":{"version_data":[{"version_value":"< 2.1.0"}]}}]},"vendor_name":"discourse"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h","refsource":"CONFIRM","url":"https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h"},{"name":"https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192","refsource":"MISC","url":"https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192"}]},"source":{"advisory":"GHSA-m44p-w923-w32h","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-10-06 18:16:00","lastModifiedDate":"2022-11-10 04:15:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discotoc:*:*:*:*:*:*:*:*","versionEndExcluding":"2.1.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}