Vulnerability Details : CVE-2022-39270
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2022-39270
- cpe:2.3:a:discourse:discotoc:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-39270
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 22 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-39270
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
2.3
|
2.7
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
2.3
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2022-39270
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by:
- nvd@nist.gov (Secondary)
- security-advisories@github.com (Primary)
References for CVE-2022-39270
-
https://github.com/discourse/DiscoTOC/security/advisories/GHSA-m44p-w923-w32h
Arbitrary HTML injection in table-of-contents theme component · Advisory · discourse/DiscoTOC · GitHubThird Party Advisory
-
https://github.com/discourse/DiscoTOC/commit/f80c215a283cd045d2a371403e6eba88b2911192
SECURITY: Render TOC items as plain text (#44) · discourse/DiscoTOC@f80c215 · GitHubPatch;Third Party Advisory
Jump to