CVE-2022-39270 Arbitrary HTML injection in table-of-contents theme component in DiscoTOC
MediumCVSS 5.4
EPSS 0.49%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| discourse DiscoTOC | < 2.1.0; = < 2.1.0 | 2.1.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| discourse DiscoTOC | = < 2.1.0 | No fix listed |
| discourse DiscoTOC | < 2.1.0 | 2.1.0 |
References
- github.com third-party-advisory
- github.com patch third-party-advisory