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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2024-03-20T15:06:03.000Z
- Modified: 2026-11-30T19:14:34.723Z
- Also known as: GHSA-9rfr-pf2x-g4xf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2024-23640](https://www.cve.org/CVERecord?id=CVE-2024-23640), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-9rfr-pf2x-g4xf](https://github.com/advisories/GHSA-9rfr-pf2x-g4xf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-23640](https://nvd.nist.gov/vuln/detail/CVE-2024-23640), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2024-23640 · Whole record: https://cve.day/CVE-2024-23640.json · Rebuilt by cve.day 2026-11-30T19:17:34.217Z
