Security readout for executives and security teams
Plain-English summary
CVE-2021-39161 is a cross-site scripting issue in Discourse category names. The business risk is limited for default installations because Discourse’s default Content Security Policy mitigates it. Risk rises for sites that weakened or disabled CSP and allow moderators to modify categories.
Executive priority
Prioritize remediation for internet-facing Discourse communities with customized CSP or delegated moderator category control. Default, fully patched deployments are lower urgency, but version and CSP validation should be completed.
Technical view
Affected Discourse versions before 2.7.8 and 2.8.0 beta versions before beta4 allowed category names to be used for XSS. The CVSS 3.1 score is 4.4, with network access, high complexity, low privileges, required user interaction, and changed scope.
Likely exposure
Exposure is most likely on self-hosted or managed Discourse sites running affected versions, with modified or disabled CSP, and moderator permissions that allow category changes. Default CSP significantly reduces practical exposure.
Exploitation context
The source bundle does not report active exploitation, and the CVE is not listed as KEV. Exploitation depends on site configuration and user interaction, so broad opportunistic exploitation is not supported by the provided evidence.
Researcher notes
Focus assessment on version, CSP posture, and category-management permissions. The provided sources identify the weakness and patched version ranges, but do not provide evidence of exploitation in the wild or additional compensating controls beyond CSP and upgrade guidance.
Mitigation direction
- Upgrade Discourse to the latest stable, beta, or tests-passed release.
- Confirm Discourse Content Security Policy is enabled.
- Avoid CSP changes that weaken XSS protection.
- Restrict category modification permissions until patched.
- Review the Discourse advisory for current vendor guidance.
Validation and detection
- Inventory Discourse instances and compare versions against affected ranges.
- Check whether CSP is enabled and close to Discourse defaults.
- Review which roles can modify categories.
- Confirm upgraded systems are no longer below 2.7.8 or beta4.
- Document any CSP exceptions and their business justification.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-79: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2021-39161 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 4.4 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N1.32.7Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
4.4MediumVector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/discourse/discourse/security/advisories/GHSA-xhmc-9jwm-wqphCVE reference · x_refsource_CONFIRM
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
