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

High 7.2 Published Updated

Attackers can execute arbitrary scripts via encrypted topic titles if CSP is disabled, requiring plugin upgrade or CSP enablement.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-43657?

CVE-2023-43657 is a high-severity cross-site scripting vulnerability in discourse-encrypt, published on 28 Sep 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2023-43657?

It affects 1 product.

Products include Discourse Discourse-Encrypt.

How do I fix CVE-2023-43657?

No fix has been published for CVE-2023-43657 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-43657 being exploited?

There is no known exploitation of CVE-2023-43657 in the wild and no public exploit code.

Sources

Also known as GHSA-5fh6-wp7p-xx7v.

Is CVE-2023-43657 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free