# CVE-2024-23818: GeoServer Stored Cross-Site Scripting (XSS) vulnerability in WMS OpenLayers Format

- 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:15:17.000Z
- Modified: 2026-11-30T19:14:34.723Z
- Also known as: GHSA-fcpm-hchj-mh72
- 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.1 that enables an authenticated administrator with workspace-level privileges to store a JavaScript payload in the GeoServer catalog that will execute in the context of another user's browser when viewed in the WMS GetMap OpenLayers Output Format.  Access to the WMS OpenLayers Format is available to all users by default although data and service security may limit users' ability to trigger the XSS. Versions 2.23.3 and 2.24.1 contain a patch for this issue.

(As written by CVE List.)

## Affected

- geoserver geoserver: < 2.23.3; = 2.24.0
- org.geoserver:gs-wms (Maven): before 2.23.3; from 2.24.0 before 2.24.1
- osgeo geoserver: before 2.23.3; 2.24.0

## 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-fcpm-hchj-mh72> (vendor-advisory, web)
- <https://github.com/geoserver/geoserver/pull/7174> (issue-tracking, web)
- <https://github.com/geoserver/geoserver/commit/4557a832eed19ec18b9753cb97e8aa85269741d2> (patch, web)
- <https://github.com/geoserver/geoserver/commit/a26c32a469ee4c599236380452ffb4260361bd6f> (patch, web)
- <https://osgeo-org.atlassian.net/browse/GEOS-11153> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23818> (advisory)
- <https://github.com/geoserver/geoserver> (package)

## Sources

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

---

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