GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format
geoserver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver.web:gs-web-app Maven |
|
|
| org.geoserver:gs-wms Maven |
|
|
Original description
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to version 2.25.0, 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. This issue has been patched in version 2.25.0.
From the CVE record · GitHub_M
References
- github.com/geoserver/geoserver/security/advisories/GHSA-w66h-j855-qr72Vendor advisory
- github.com/geoserver/geoserver/pull/7406Issue tracker
- github.com/geoserver/geoserver/commit/dc9ff1c726dd73c884437a123b4ad72b19383c7dPatch
- osgeo-org.atlassian.net/browse/GEOS-11297Issue tracker
- github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21621.json
- nvd.nist.gov/vuln/detail/CVE-2025-21621
- github.com/geoserver/geoserver
- osgeo-org.atlassian.net/browse/GEOS-11203