# CVE-2023-43657: Improper escaping of encrypted topic titles can lead to Cross-site Scripting under non-default site configuration

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- 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.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2023-09-28T18:04:26.672Z
- Modified: 2026-06-17T06:26:10.187Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

discourse-encrypt is a plugin that provides a secure communication channel through Discourse. Improper escaping of encrypted topic titles could lead to a cross site scripting (XSS) issue when a site has content security policy (CSP) headers disabled. Having CSP disabled is a non-default configuration, and having it disabled with discourse-encrypt installed will result in a warning in the Discourse admin dashboard. This has been fixed in commit `9c75810af9` which is included in the latest version of the discourse-encrypt plugin. Users are advised to upgrade. Users unable to upgrade should ensure that CSP headers are enabled and properly configured.

(As written by CVE List.)

## Affected

- discourse discourse-encrypt: <= c492904c; up to c492904c; before 2023-09-28

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- 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`

## References

- <https://github.com/discourse/discourse-encrypt/security/advisories/GHSA-5fh6-wp7p-xx7v> (vendor-advisory)
- <https://github.com/discourse/discourse-encrypt/commit/9c75810af9a474d7edaec67dea66f852c0ba1f4e> (patch)
- <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP> (product)

## Sources

- CVE List: [CVE-2023-43657](https://www.cve.org/CVERecord?id=CVE-2023-43657), CVE Terms of Use, modified 2024-09-23
- NVD: [CVE-2023-43657](https://nvd.nist.gov/vuln/detail/CVE-2023-43657), Public domain, modified 2026-06-17

---

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