{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-39320",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
                        "cweId": "CWE-74"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-1021: Improper Restriction of Rendered UI Layers or Frames",
                        "cweId": "CWE-1021"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "discourse",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "discourse",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "< 3.2.5"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 3.3.0.beta1, < 3.3.0.beta5"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/security/advisories/GHSA-4p82-xh38-gq4p"
            },
            {
                "url": "https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/commit/188cb58daa833839c54c266ce22db150a3f3a210"
            },
            {
                "url": "https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/commit/76f06f6b1491db6bd09a4017d2c5591431b3b16e"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-4p82-xh38-gq4p",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "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"
            }
        ]
    }
}