SecurityContext

CVE-2022-39270: DiscoTOC - Stored XSS

  • Cve: CVE-2022-39270
  • Name: DiscoTOC - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary scripts in users' browsers, leading to session hijacking, defacement, or malicious redirects.
  • Remediation: Update to the latest version of the DiscoTOC theme component via the admin UI or disable the component temporarily.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: logged_in
  • Requirements: User needs to create topics in TOC-enabled categories with sufficient trust level
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00494
  • Epss percentile: 0.42958
  • Assignee: [email protected]
  • Published at: 2022-10-06T18:16:14Z
  • Age in days: 1510
  • Modified at: 2026-06-17T04:58:02Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39270
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192nvdPatch, Third Party Advisory
https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32hnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
discourse:discotoc< 2.1.0nonvd/v1/products/discourse/discotoc

Projects

RepositoryLink kindsIndexedUrl
discourse/DiscoTOCcommit, fix, security_advisoryyes/v1/repositories/discourse/DiscoTOC

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts