CVE-2022-23549: Discourse - Stored XSS
- Cve: CVE-2022-23549
- Name: Discourse - Stored XSS
- Description: Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 2.9.0.beta16 on the `beta` and `tests-passed` branches, users can create posts with raw body longer than the `max_length` site setting by including html comments that are not counted toward the character limit. This issue is patched in versions 2.8.14 and 2.9.0.beta16. There are no known workarounds.
- Impact: Attackers can execute arbitrary scripts in users' browsers, leading to session hijacking or defacement.
- Remediation: Update to version 2.8.14 or 2.9.0.beta16.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to include HTML comments in posts
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00619
- Epss percentile: 0.50596
- Assignee: [email protected]
- Published at: 2023-01-05T19:15:09Z
- Age in days: 1419
- Modified at: 2026-06-17T04:30:20Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-23549
- 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
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
| NVD-CWE-Other | — |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/discourse/discourse/commit/bf6b08670a927cc80bb090b7a2e710b4b554e6a8 | nvd | Patch, Third Party Advisory |
| https://github.com/discourse/discourse/security/advisories/GHSA-p47g-v5wr-p4xp | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| discourse:discourse | = 3.0.0 beta15, = 2.9.0 beta14, = 2.9.0 beta13, = 2.9.0 beta12, = 2.9.0 beta11, = 2.9.0 beta10, = 2.9.0 beta8, = 2.9.0 beta7, = 2.9.0 beta6, = 2.9.0 beta5, = 2.9.0 beta4, = 2.9.0 beta3, = 2.9.0 beta1, = 2.9.0 beta2, < 2.8.14 | no | nvd | /v1/products/discourse/discourse |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| discourse/discourse | commit, fix, security_advisory | yes | /v1/repositories/discourse/discourse |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 22639
- 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