CVE-2023-30538

MediumCVSS 5.4/10Last modified Jun 17, 2026

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

Metrics

CVSS 3.1 5.4/10CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Apr 18, 2023
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2023

CVE-2023-305398.8Nextcloud is a personal home server system. Depending on the set up tags and other workflows this issue can be used to limit access of otherCVE-2023-305404.3Nextcloud Talk is a chat, video & audio call extension for Nextcloud. In affected versions a user that was added later to a conversation canCVE-2023-305415.3OpenZeppelin Contracts is a library for secure smart contract development. A function in the implementation contract may be inaccessible if CVE-2023-305428.8OpenZeppelin Contracts is a library for secure smart contract development. The proposal creation entrypoint (`propose`) in `GovernorCompatibCVE-2023-305435.7@web3-react is a framework for building Ethereum Apps . In affected versions the `chainId` may be outdated if the user changes chains as parCVE-2023-305444.3Kiwi TCMS is an open source test management system. In versions of Kiwi TCMS prior to 12.2, users were able to update their email addresses CVE-2023-305456.5PrestaShop is an Open Source e-commerce web application. Prior to versions 8.0.4 and 1.7.8.9, it is possible for a user with access to the SCVE-2023-305467.5Contiki-NG is an operating system for Internet of Things devices. An off-by-one error can be triggered in the Antelope database management sCVE-2023-3054710.0vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitizatioCVE-2023-305484.3gatsby-plugin-sharp is a plugin for the gatsby framework which exposes functions built on the Sharp image processing library. The gatsby-pluCVE-2023-305497.8Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of ApptaCVE-2023-30554.3The Page Builder by AZEXO plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 1.27.133. This