{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-25172",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Discourse is an open-source discussion platform. Prior to version 3.0.1 of the `stable` branch and version 3.1.0.beta2 of the `beta` and `tests-passed` branches, a maliciously crafted URL can be included in a user's full name field to to carry out cross-site scripting attacks on sites with a disabled or overly permissive CSP (Content Security Policy). Discourse's default CSP prevents this vulnerability. The vulnerability is patched in version 3.0.1 of the `stable` branch and version 3.1.0.beta2 of the `beta` and `tests-passed` branches. As a workaround, enable and/or restore your site's CSP to the default one provided with Discourse."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                        "cweId": "CWE-79"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "discourse",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "discourse",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "stable < 3.0.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "beta < 3.1.0.beta2"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "tests-passed < 3.1.0.beta2"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp"
            },
            {
                "url": "https://github.com/discourse/discourse/pull/20008",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/pull/20008"
            },
            {
                "url": "https://github.com/discourse/discourse/pull/20009",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/pull/20009"
            },
            {
                "url": "https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915"
            },
            {
                "url": "https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a",
                "refsource": "MISC",
                "name": "https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-7pm2-prxw-wrvp",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 4.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N",
                "version": "3.1"
            }
        ]
    }
}