# CVE-2024-23640: GeoServer Stored Cross-Site Scripting (XSS) vulnerability in Style Publisher

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-03-20 · Modified: 2024-08-01
- Aliases: GHSA-9rfr-pf2x-g4xf
- Record: https://cvemate.com/vulnerability/CVE-2024-23640 · JSON: https://cvemate.com/vulnerability/CVE-2024-23640/json

## 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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.426%, percentile 38.841%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- geoserver geoserver: \< 2.23.3
- org.geoserver gs-main (Maven): \< 2.23.3
- org.geoserver gs-ows (Maven): \< 2.23.3
- osgeo geoserver: \< 2.23.3

## References

- <https://github.com/geoserver/geoserver/security/advisories/GHSA-9rfr-pf2x-g4xf>
- <https://github.com/geoserver/geoserver/pull/7162>
- <https://github.com/geoserver/geoserver/pull/7181>
- <https://osgeo-org.atlassian.net/browse/GEOS-11149>
- <https://osgeo-org.atlassian.net/browse/GEOS-11155>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23640>
- <https://github.com/geoserver/geoserver>

---

Data as of 2026-12-05T13:41:55.977Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
