{"id":"CVE-2024-39320","state":"PUBLISHED","title":"Discourse allows iframe injection though default site setting","description":"Discourse is an open source discussion platform. Prior to 3.2.5 and 3.3.0.beta5, the vulnerability allows an attacker to inject iframes from any domain, bypassing the intended restrictions enforced by the allowed_iframes setting. This vulnerability is fixed in 3.2.5 and 3.3.0.beta5.","publishedAt":"2024-07-30T14:33:48.589Z","updatedAt":"2024-08-02T04:19:20.670Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["discourse discourse"],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"< 3.2.5","status":"affected"},{"version":">= 3.3.0.beta1, < 3.3.0.beta5","status":"affected"}]}],"references":["https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p","https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210","https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e"],"weaknesses":["CWE-74","CWE-1021"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/39xxx/CVE-2024-39320.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-39320","state":"PUBLISHED","datePublished":"2024-07-30T14:33:48.589Z","dateUpdated":"2024-08-02T04:19:20.670Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-06-21T18:15:22.262Z"},"containers":{"cna":{"title":"Discourse allows iframe injection though default site setting","descriptions":[{"lang":"en","value":"Discourse is an open source discussion platform. Prior to 3.2.5 and 3.3.0.beta5, the vulnerability allows an attacker to inject iframes from any domain, bypassing the intended restrictions enforced by the allowed_iframes setting. This vulnerability is fixed in 3.2.5 and 3.3.0.beta5."}],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"< 3.2.5","status":"affected"},{"version":">= 3.3.0.beta1, < 3.3.0.beta5","status":"affected"}]}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p","name":"https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210","name":"https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e","name":"https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","lang":"en","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1021","lang":"en","description":"CWE-1021: Improper Restriction of Rendered UI Layers or Frames","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-07-30T14:33:48.589Z"},"source":{"advisory":"GHSA-4p82-xh38-gq4p","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-30T17:25:42.441671Z","id":"CVE-2024-39320","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-30T17:25:51.807Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p","name":"https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210","name":"https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e","name":"https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:19:20.670Z"}}]}}}