{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-22454",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2022-12-29T03:00:40.877Z",
        "datePublished": "2023-01-05T19:58:36.355Z",
        "dateUpdated": "2024-08-02T10:13:48.361Z"
    },
    "containers": {
        "cna": {
            "title": "Discourse vulnerable to Cross-site Scripting through pending post titles descriptions",
            "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": "HIGH",
                        "baseScore": 8,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/discourse/discourse/security/advisories/GHSA-ggq4-4qxc-c462",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/discourse/discourse/security/advisories/GHSA-ggq4-4qxc-c462"
                },
                {
                    "name": "https://github.com/discourse/discourse/commit/c0e2d7badac276d82a4056a994b48d68a8993a12",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/discourse/discourse/commit/c0e2d7badac276d82a4056a994b48d68a8993a12"
                }
            ],
            "affected": [
                {
                    "vendor": "discourse",
                    "product": "discourse",
                    "versions": [
                        {
                            "version": "< 2.8.14",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.9.0.beta0, < 3.0.0.beta16",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-01-05T19:58:36.355Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 3.0.0.beta16 on the `beta` and `tests-passed` branches, pending post titles can be used for cross-site scripting attacks. Pending posts can be created by unprivileged users when a category has the \"require moderator approval of all new topics\" setting set. This vulnerability can lead to a full XSS on sites which have modified or disabled Discourse’s default Content Security Policy. A patch is available in versions 2.8.14 and 3.0.0.beta16."
                }
            ],
            "source": {
                "advisory": "GHSA-ggq4-4qxc-c462",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T10:13:48.361Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/discourse/discourse/security/advisories/GHSA-ggq4-4qxc-c462",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/discourse/discourse/security/advisories/GHSA-ggq4-4qxc-c462"
                    },
                    {
                        "name": "https://github.com/discourse/discourse/commit/c0e2d7badac276d82a4056a994b48d68a8993a12",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/discourse/discourse/commit/c0e2d7badac276d82a4056a994b48d68a8993a12"
                    }
                ]
            }
        ]
    }
}