{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-30538","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2023-04-12T15:19:33.766Z","datePublished":"2023-04-18T21:25:58.848Z","dateUpdated":"2025-02-06T16:33:27.722Z"},"containers":{"cna":{"title":"Stored Cross-site Scripting via improper sanitization of svg files in Discourse","problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"}}],"references":[{"name":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43","tags":["x_refsource_CONFIRM"],"url":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43"}],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"stable: < 3.0.3","status":"affected"},{"version":"beta: < 3.1.0.beta4","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2023-04-18T21:25:58.848Z"},"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). "}],"source":{"advisory":"GHSA-w5mv-4pjf-xj43","discovery":"UNKNOWN"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T14:28:51.848Z"},"title":"CVE Program Container","references":[{"name":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43","tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/discourse/discourse/security/advisories/GHSA-w5mv-4pjf-xj43"}]},{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-06T16:33:06.431010Z","id":"CVE-2023-30538","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-02-06T16:33:27.722Z"}}]}}