{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-23640",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-01-19T00:18:53.233Z",
        "datePublished": "2024-03-20T15:26:01.700Z",
        "dateUpdated": "2024-08-01T23:06:25.345Z"
    },
    "containers": {
        "cna": {
            "title": "GeoServer Stored Cross-Site Scripting (XSS) vulnerability in Style Publisher",
            "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": "NONE",
                        "baseScore": 4.8,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "HIGH",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/geoserver/geoserver/security/advisories/GHSA-9rfr-pf2x-g4xf",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/geoserver/geoserver/security/advisories/GHSA-9rfr-pf2x-g4xf"
                },
                {
                    "name": "https://github.com/geoserver/geoserver/pull/7162",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/geoserver/geoserver/pull/7162"
                },
                {
                    "name": "https://github.com/geoserver/geoserver/pull/7181",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/geoserver/geoserver/pull/7181"
                },
                {
                    "name": "https://osgeo-org.atlassian.net/browse/GEOS-11149",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://osgeo-org.atlassian.net/browse/GEOS-11149"
                },
                {
                    "name": "https://osgeo-org.atlassian.net/browse/GEOS-11155",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://osgeo-org.atlassian.net/browse/GEOS-11155"
                }
            ],
            "affected": [
                {
                    "vendor": "geoserver",
                    "product": "geoserver",
                    "versions": [
                        {
                            "version": "< 2.23.3",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-03-20T15:26:01.700Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. A stored cross-site scripting (XSS) vulnerability exists in versions prior to 2.23.3 and 2.24.0 that enables an authenticated administrator with workspace-level privileges to store a JavaScript payload in uploaded style/legend resources or in a specially crafted datastore file that will execute in the context of another user's browser when viewed in the Style Publisher. Access to the Style Publisher is available to all users although data security may limit users' ability to trigger the XSS. Versions 2.23.3 and 2.24.0 contain a fix for this issue."
                }
            ],
            "source": {
                "advisory": "GHSA-9rfr-pf2x-g4xf",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-23640",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-03-21T16:18:35.767304Z"
                            }
                        }
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:45:55.450Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T23:06:25.345Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/geoserver/geoserver/security/advisories/GHSA-9rfr-pf2x-g4xf",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/geoserver/geoserver/security/advisories/GHSA-9rfr-pf2x-g4xf"
                    },
                    {
                        "name": "https://github.com/geoserver/geoserver/pull/7162",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/geoserver/geoserver/pull/7162"
                    },
                    {
                        "name": "https://github.com/geoserver/geoserver/pull/7181",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/geoserver/geoserver/pull/7181"
                    },
                    {
                        "name": "https://osgeo-org.atlassian.net/browse/GEOS-11149",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://osgeo-org.atlassian.net/browse/GEOS-11149"
                    },
                    {
                        "name": "https://osgeo-org.atlassian.net/browse/GEOS-11155",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://osgeo-org.atlassian.net/browse/GEOS-11155"
                    }
                ]
            }
        ]
    }
}