# CVE-2025-21621: GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-11-25 · Modified: 2025-11-26
- Aliases: GHSA-w66h-j855-qr72
- Record: https://cvemate.com/vulnerability/CVE-2025-21621 · JSON: https://cvemate.com/vulnerability/CVE-2025-21621/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.553%, percentile 47.632%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- geoserver geoserver: \< 2.25.0
- org.geoserver gs-wms (Maven): \< 2.25.0
- org.geoserver.web gs-web-app (Maven): \< 2.25.0
- osgeo geoserver: \< 2.25.0

## References

- <https://github.com/geoserver/geoserver/security/advisories/GHSA-w66h-j855-qr72>
- <https://github.com/geoserver/geoserver/pull/7406>
- <https://github.com/geoserver/geoserver/commit/dc9ff1c726dd73c884437a123b4ad72b19383c7d>
- <https://osgeo-org.atlassian.net/browse/GEOS-11297>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-21621>
- <https://github.com/geoserver/geoserver>
- <https://osgeo-org.atlassian.net/browse/GEOS-11203>

---

Data as of 2026-12-05T10:12:17.201Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
