{"id":"CVE-2023-30538","sourceIdentifier":"security-advisories@github.com","published":"2023-04-18T22:15:08.130","lastModified":"2026-06-17T05:54:58.467","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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). "}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"discourse","product":"discourse","versions":[{"version":"stable: < 3.0.3","status":"affected"},{"version":"beta: < 3.1.0.beta4","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","baseScore":5.4,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":2.5},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","baseScore":5.4,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.3,"impactScore":2.7}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-02-06T16:33:06.431010Z","id":"CVE-2023-30538","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-79"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*","versionEndIncluding":"3.0.2","matchCriteriaId":"00B6C4A7-D922-42E9-9E83-4FF77564982E"},{"vulnerable":true,"criteria":"cpe:2.3:a:discourse:discourse:*:*:*:*:beta:*:*:*","versionEndExcluding":"3.1.0","matchCriteriaId":"D3C08972-822D-4657-9B6F-02BC692B7C6E"},{"vulnerable":true,"criteria":"cpe:2.3:a:discourse:discourse:3.1.0:beta1:*:*:beta:*:*:*","matchCriteriaId":"B9BBED17-A6BA-4F17-8814-8D8521F28375"},{"vulnerable":true,"criteria":"cpe:2.3:a:discourse:discourse:3.1.0:beta2:*:*:beta:*:*:*","matchCriteriaId":"888B8ECF-EBE0-4821-82F6-B0026E95E407"},{"vulnerable":true,"criteria":"cpe:2.3:a:discourse:discourse:3.1.0:beta3:*:*:beta:*:*:*","matchCriteriaId":"FD0302B1-C0BA-49EE-8E1B-E8A43879BFC2"}]}]}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43","source":"security-advisories@github.com","tags":["Mitigation","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mitigation","Third Party Advisory"]}]}