Moderate severityNVD Advisory· Published Nov 25, 2025· Updated Nov 26, 2025
GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format
CVE-2025-21621
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.geoserver.web:gs-web-appMaven | < 2.25.0 | 2.25.0 |
org.geoserver:gs-wmsMaven | < 2.25.0 | 2.25.0 |
Affected products
3- ghsa-coords2 versions
< 2.25.0+ 1 more
- (no CPE)range: < 2.25.0
- (no CPE)range: < 2.25.0
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-w66h-j855-qr72ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-21621ghsaADVISORY
- github.com/geoserver/geoserver/commit/dc9ff1c726dd73c884437a123b4ad72b19383c7dghsax_refsource_MISCWEB
- github.com/geoserver/geoserver/pull/7406ghsax_refsource_MISCWEB
- github.com/geoserver/geoserver/security/advisories/GHSA-w66h-j855-qr72ghsax_refsource_CONFIRMWEB
- osgeo-org.atlassian.net/browse/GEOS-11203ghsaWEB
- osgeo-org.atlassian.net/browse/GEOS-11297ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.