GeoServer has a Reflected Cross-Site Scripting (XSS) vulnerability in its WMS GetFeatureInfo HTML format
Moderate severity
GitHub Reviewed
Published
Nov 25, 2025
in
geoserver/geoserver
•
Updated Nov 27, 2025
Description
Published to the GitHub Advisory Database
Nov 25, 2025
Reviewed
Nov 25, 2025
Published by the National Vulnerability Database
Nov 25, 2025
Last updated
Nov 27, 2025
Summary
A reflected cross-site scripting (XSS) vulnerability exists in the WMS GetFeatureInfo HTML output format that enables a remote attacker to execute arbitrary JavaScript code in a victim's browser through specially crafted SLD_BODY parameters.
Details
The WMS service setting that controls HTML auto-escaping is either disabled by default, or completely missing, in the affected versions (see workarounds).
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:
Workarounds
Changing any of the following WMS service settings should mitigate this vulnerability in most environments:
References
https://osgeo-org.atlassian.net/browse/GEOS-11297
geoserver/geoserver#7406
References