CVE-2023-30538

Medium

Description

Discourse is an open source platform for community discussion. Due to the improper sanitization of SVG files, an attacker can execute arbitrary JavaScript on the users’ browsers by uploading a crafted SVG file. This issue is patched in the latest stable and tests-passed versions of Discourse. Users are advised to upgrade. For users unable to upgrade there are two possible workarounds: enable CDN handing of uploads (and ensure the CDN sanitizes SVG files) or disable SVG file uploads by ensuring that the `authorized extensions` site setting does not include `svg` (or reset that setting to the default, by default Discourse doesn't enable SVG uploads by users).

SeverityMedium
CVSS5.4
Exploit probability—
ProductDiscourse
PublishedApr 18, 2023
First seenApr 18, 2023

How to fix

Update
  • discourse discourse3.1.0 or later

Affected products

ProductAffected versionsFixed in
discourse discoursev ≤ 3.0.2, v < 3.1.0, 3.1.03.1.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.