# CVE-2023-29196: HTML injection via topic embedding in Discourse

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2023-04-18T21:24:10.098Z
- Modified: 2026-09-08T08:46:11.460Z
- Also known as: BIT-DISCOURSE-2023-29196, GHSA-986p-4x8q-8f48
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Discourse is an open source platform for community discussion. This vulnerability is not exploitable on the default install of Discourse. A custom feature must be enabled for it to work at all, and the attacker’s payload must pass the CSP to be executed. However, if an attacker succeeds in embedding Javascript that does pass the CSP, it could result in session hijacking for any users that view the attacker’s post. The vulnerability is patched in the latest tests-passed, beta and stable branches. Users are advised to upgrade. Users unable to upgrade should enable and/or restore your site's CSP to the default one provided with Discourse. Remove any embed-able hosts configured.

(As written by CVE List.)

## Affected

- discourse discourse: stable: < 3.0.3; beta: < 3.1.0.beta4; before 3.0.3; before 3.1.0; 3.1.0
- discourse (Bitnami): before 3.1.0

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-986p-4x8q-8f48> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29196> (web)

## Sources

- CVE List: [CVE-2023-29196](https://www.cve.org/CVERecord?id=CVE-2023-29196), CVE Terms of Use, modified 2025-02-06
- NVD: [CVE-2023-29196](https://nvd.nist.gov/vuln/detail/CVE-2023-29196), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2023-29196](https://osv.dev/vulnerability/BIT-DISCOURSE-2023-29196), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-29196 · Whole record: https://cve.day/CVE-2023-29196.json · Rebuilt by cve.day 2026-11-25T22:58:23.623Z
