CVE-2024-39320
CVE-2024-39320 is a medium-severity vulnerability in Discourse with a CVSS 3.x base score of 6.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1021.
Key facts
- Severity: Medium (CVSS 3.x base score 6.1)
- EPSS exploit prediction: 0% (26th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-37898
- Weakness: CWE-1021
- Affected product: Discourse
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-39320?
- 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.
- How severe is CVE-2024-39320?
- CVE-2024-39320 has a CVSS 3.x base score of 6.1, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2024-39320 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (26th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-39320?
- CVE-2024-39320 primarily affects Discourse. In total, 5 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2024-39320?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-39320 have an EU (EUVD) identifier?
- Yes. CVE-2024-39320 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-37898.
- When was CVE-2024-39320 published?
- CVE-2024-39320 was published on 2024-07-30 and last updated on 2026-06-17.
References
- https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210
- https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e
- https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p
Affected products (5)
- cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*
- cpe:2.3:a:discourse:discourse:3.3.0:beta1:*:*:beta:*:*:*
- cpe:2.3:a:discourse:discourse:3.3.0:beta2:*:*:beta:*:*:*
- cpe:2.3:a:discourse:discourse:3.3.0:beta3:*:*:beta:*:*:*
- cpe:2.3:a:discourse:discourse:3.3.0:beta4:*:*:beta:*:*:*
More vulnerabilities in Discourse
- CVE-2021-41163 — Critical (CVSS 10.0): Discourse is an open source platform for community discussion. In affected versions maliciously crafted requests could…
- CVE-2025-53102 — Critical (CVSS 9.8): Discourse is an open-source community discussion platform. Prior to version 3.4.7 on the `stable` branch and version…
- CVE-2025-48877 — Critical (CVSS 9.8): Discourse is an open-source discussion platform. Prior to version 3.4.4 of the `stable` branch, version 3.5.0.beta5 of…
- CVE-2022-36066 — Critical (CVSS 9.1): Discourse is an open source discussion platform. In versions prior to 2.8.9 on the `stable` branch and prior to…
- CVE-2022-39356 — High (CVSS 8.9): Discourse is a platform for community discussion. Users who receive an invitation link that is not scoped to a single…
- CVE-2023-22468 — High (CVSS 8.8): Discourse is an open source platform for community discussion. Versions prior to 2.8.13 (stable), 3.0.0.beta16 (beta)…
All CVEs affecting Discourse →
Other CWE-1021 vulnerabilities
- CVE-2021-43048 — Critical (CVSS 9.8): The Interior Server and Gateway Server components of TIBCO Software Inc.'s TIBCO PartnerExpress contain a vulnerability…
- CVE-2021-23274 — Critical (CVSS 9.8): The Config UI component of TIBCO Software Inc.'s TIBCO API Exchange Gateway and TIBCO API Exchange Gateway Distribution…
- CVE-2016-2496 — Critical (CVSS 9.8): The Framework UI permission-dialog implementation in Android 6.x before 2016-06-01 allows attackers to conduct…
- CVE-2021-21132 — Critical (CVSS 9.6): Inappropriate implementation in DevTools in Google Chrome prior to 88.0.4324.96 allowed a remote attacker to…
- CVE-2021-21111 — Critical (CVSS 9.6): Insufficient policy enforcement in WebUI in Google Chrome prior to 87.0.4280.141 allowed an attacker who convinced a…
- CVE-2024-10004 — Critical (CVSS 9.1): Opening an external link to an HTTP website when Firefox iOS was previously closed and had an HTTPS tab open could in…