{"id":"CVE-2023-30538","published":"2023-04-18T21:25:58Z","modified":"2025-02-06T16:33:27Z","title":"Stored Cross-site Scripting via improper sanitization of svg files in Discourse","vendor":"discourse","product":"discourse","tier":"tail","description":{"text":"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). ","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00364,"percentile":0.30999,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":6.2},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"discourse","versions":["stable: < 3.0.3","beta: < 3.1.0.beta4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-06T16:33:06.431010Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-34928","exploited":false,"provenance":"source"}}