CVE-2024-23818: GeoServer's WMS OpenLayers Format vulnerable to Stored Cross-Site Scripting (XSS)
Summary A stored cross-site scripting (XSS) vulnerability exists 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.
Published Mar 20, 2024
Affected packages
org.geoserver:gs-wms
- Ecosystem
- Maven
- Affected
- < 2.23.3
- Fixed in
- 2.23.3
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-wms
org.geoserver:gs-wms
- Ecosystem
- Maven
- Affected
- >= 2.24.0, < 2.24.1
- Fixed in
- 2.24.1
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-wms
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A stored cross-site scripting (XSS) vulnerability exists 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.
Impact
If an attacker can control a script that is executed in the victim's browser, then they can typically fully compromise that user. Amongst other things, the attacker can:
1 .Perform any action within the application that the user can perform.
- View any information that the user is able to view.
- Modify any information that the user is able to modify.
- Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user.
References
https://osgeo-org.atlassian.net/browse/GEOS-11153 https://github.com/geoserver/geoserver/pull/7174
Credited to sikeoka.
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-fcpm-hchj-mh72
- https://github.com/geoserver/geoserver/pull/7174
- https://github.com/geoserver/geoserver/commit/4557a832eed19ec18b9753cb97e8aa85269741d2
- https://github.com/geoserver/geoserver/commit/a26c32a469ee4c599236380452ffb4260361bd6f
- https://osgeo-org.atlassian.net/browse/GEOS-11153
- https://nvd.nist.gov/vuln/detail/CVE-2024-23818
- https://github.com/advisories/GHSA-fcpm-hchj-mh72
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2024-45747
GeoServer has a Server-Side Template Injection (SSTI) vulnerability in processing FreeMarker templates
high7.2Aug 19, 2026CVE-2025-21621
GeoServer has a Reflected Cross-Site Scripting (XSS) vulnerability in its WMS GetFeatureInfo HTML format
medium6.1Nov 25, 2025CVE-2025-58360
GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature
high8.2ExploitedNov 25, 2025CVE-2025-30145
GeoServer Infinite Loop Vulnerability in Jiffle process
high7.5Jun 10, 2025CVE-2024-36401
Remote Code Execution (RCE) vulnerability in geoserver
critical9.8ExploitedJul 1, 2024CVE-2024-23642
GeoServer's Simple SVG Renderer vulnerable to Stored Cross-Site Scripting (XSS)
medium4.8Mar 20, 2024
