{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-35162",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-06-14T14:17:52.178Z",
        "datePublished": "2023-06-23T18:52:19.725Z",
        "dateUpdated": "2024-08-02T16:23:59.521Z"
    },
    "containers": {
        "cna": {
            "title": "XPlatform Wiki vulnerable to cross-site scripting via xcontinue parameter in preview actions template",
            "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": 9.7,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q9hg-9qj2-mxf9",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q9hg-9qj2-mxf9"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-platform/commit/9f01166b1a8ee9639666099eb5040302df067e4d",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/9f01166b1a8ee9639666099eb5040302df067e4d"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XWIKI-20342",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-20342"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XWIKI-20583",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-20583"
                }
            ],
            "affected": [
                {
                    "vendor": "xwiki",
                    "product": "xwiki-platform",
                    "versions": [
                        {
                            "version": ">= 6.1-rc-1, < 14.10.5",
                            "status": "affected"
                        },
                        {
                            "version": ">= 15.0-rc-1, < 15.1-rc-1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-06-23T18:52:19.725Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the previewactions template to perform a XSS, e.g. by using URL such as: > <hostname>/xwiki/bin/get/FlamingoThemes/Cerulean xpage=xpart&vm=previewactions.vm&xcontinue=javascript:alert(document.domain). This vulnerability exists since XWiki 6.1-rc-1. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1."
                }
            ],
            "source": {
                "advisory": "GHSA-q9hg-9qj2-mxf9",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T16:23:59.521Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q9hg-9qj2-mxf9",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q9hg-9qj2-mxf9"
                    },
                    {
                        "name": "https://github.com/xwiki/xwiki-platform/commit/9f01166b1a8ee9639666099eb5040302df067e4d",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/xwiki/xwiki-platform/commit/9f01166b1a8ee9639666099eb5040302df067e4d"
                    },
                    {
                        "name": "https://jira.xwiki.org/browse/XWIKI-20342",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://jira.xwiki.org/browse/XWIKI-20342"
                    },
                    {
                        "name": "https://jira.xwiki.org/browse/XWIKI-20583",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://jira.xwiki.org/browse/XWIKI-20583"
                    }
                ]
            }
        ]
    }
}