{"id":"CVE-2023-43657","state":"PUBLISHED","title":"Improper escaping of encrypted topic titles can lead to Cross-site Scripting under non-default site configuration","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.","publishedAt":"2023-09-28T18:04:26.672Z","updatedAt":"2024-09-23T18:21:57.902Z","severity":{"score":7.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["discourse discourse-encrypt"],"affected":[{"vendor":"discourse","product":"discourse-encrypt","versions":[{"version":"<= c492904c","status":"affected"}]}],"references":["https://github.com/discourse/discourse-encrypt/security/advisories/GHSA-5fh6-wp7p-xx7v","https://github.com/discourse/discourse-encrypt/commit/9c75810af9a474d7edaec67dea66f852c0ba1f4e","https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:06:17.512Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/43xxx/CVE-2023-43657.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-43657","state":"PUBLISHED","datePublished":"2023-09-28T18:04:26.672Z","dateUpdated":"2024-09-23T18:21:57.902Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-09-20T15:35:38.148Z"},"containers":{"cna":{"title":"Improper escaping of encrypted topic titles can lead to Cross-site Scripting under non-default site configuration","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"discourse","product":"discourse-encrypt","versions":[{"version":"<= c492904c","status":"affected"}]}],"references":[{"url":"https://github.com/discourse/discourse-encrypt/security/advisories/GHSA-5fh6-wp7p-xx7v","name":"https://github.com/discourse/discourse-encrypt/security/advisories/GHSA-5fh6-wp7p-xx7v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse-encrypt/commit/9c75810af9a474d7edaec67dea66f852c0ba1f4e","name":"https://github.com/discourse/discourse-encrypt/commit/9c75810af9a474d7edaec67dea66f852c0ba1f4e","tags":["x_refsource_MISC"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","name":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-09-28T18:04:26.672Z"},"source":{"advisory":"GHSA-5fh6-wp7p-xx7v","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/discourse/discourse-encrypt/security/advisories/GHSA-5fh6-wp7p-xx7v","name":"https://github.com/discourse/discourse-encrypt/security/advisories/GHSA-5fh6-wp7p-xx7v","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/discourse/discourse-encrypt/commit/9c75810af9a474d7edaec67dea66f852c0ba1f4e","name":"https://github.com/discourse/discourse-encrypt/commit/9c75810af9a474d7edaec67dea66f852c0ba1f4e","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","name":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T19:44:44.057Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"discourse","product":"discourse-encrypt","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"c492904c","versionType":"git"}],"cpes":["cpe:2.3:a:discourse:discourse-encrypt:-:*:*:*:*:discourse:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-23T18:19:59.485389Z","id":"CVE-2023-43657","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-23T18:21:57.902Z"}}]}}}