{"id":"CVE-2024-23640","published":"2024-03-20T15:26:01Z","modified":"2024-08-01T23:06:25Z","title":"GeoServer Stored Cross-Site Scripting (XSS) vulnerability in Style Publisher","vendor":"geoserver","product":"geoserver","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00426,"percentile":0.37777,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-9rfr-pf2x-g4xf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/geoserver/geoserver/pull/7162","tags":["x_refsource_MISC"]},{"url":"https://github.com/geoserver/geoserver/pull/7181","tags":["x_refsource_MISC"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11149","tags":["x_refsource_MISC"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11155","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":7.56},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"geoserver","affectedVersions":[{"vendor":"geoserver","product":"geoserver","versions":["< 2.23.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-21T16:18:35.767304Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.geoserver:gs-main","vulnerableRanges":["<2.23.3"],"patched":["2.23.3"],"from":["GHSA-9rfr-pf2x-g4xf"],"provenance":"source"},{"ecosystem":"Maven","package":"org.geoserver:gs-ows","vulnerableRanges":["<2.23.3"],"patched":["2.23.3"],"from":["GHSA-9rfr-pf2x-g4xf"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in the Style Publisher component of GeoServer, the open source Java geospatial data server, lets a JavaScript payload be saved through uploaded style or legend resources or through a specially crafted datastore file. An attacker who holds workspace-level administrator privileges (high privileges on an authenticated account) can plant the payload, which then executes in the browser of another user who views it in the Style Publisher, and this requires that user to interact with the malicious content and their data security settings to permit the trigger.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:56Z"},"euvd":{"id":"EUVD-2024-0889","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24847","published":"2022-04-13","fixed":"2.20.4","kev":false,"link":{"from":"CVE-2022-24847","to":"CVE-2024-23640","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.geoserver:gs-main","fromFixed":"2.20.4","toFixed":"2.23.3","daysApart":707}]}},{"cve":"CVE-2024-23640","published":"2024-03-20","fixed":"2.23.3","kev":false},{"cve":"CVE-2024-34696","published":"2024-07-01","fixed":"2.25.1","kev":false,"link":{"from":"CVE-2024-23640","to":"CVE-2024-34696","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.geoserver:gs-main","fromFixed":"2.23.3","toFixed":"2.24.4","daysApart":103}]}},{"cve":"CVE-2025-58175","published":"2026-06-18","fixed":"2.27.3","kev":false}],"package":"Maven:org.geoserver:gs-main"}}