GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| geoserver | geoserver | before 2.25.0 | 2.25.0 | Patch available | CNA |
| — | org.geoserver.web:gs-web-app (Maven) | before 2.25.0 | 2.25.0 | Patch available | GHSA-w66h-j855-qr72 |
| — | org.geoserver:gs-wms (Maven) | before 2.25.0 | 2.25.0 | Patch available | GHSA-w66h-j855-qr72 |
- geoserver Vendorgeoserver Affected before 2.25.0 Fixed in 2.25.0 Patch available CNA
- org.geoserver.web:gs-web-app (Maven) Vendor— Affected before 2.25.0 Fixed in 2.25.0 Patch available GHSA-w66h-j855-qr72
- org.geoserver:gs-wms (Maven) Vendor— Affected before 2.25.0 Fixed in 2.25.0 Patch available GHSA-w66h-j855-qr72
Remediation
- Fix · CNA geoserver (geoserver) Fixed in 2.25.0
- Fix · GHSA-w66h-j855-qr72 org.geoserver.web:gs-web-app (Maven) Fixed in 2.25.0 Advisory →
- Fix · GHSA-w66h-j855-qr72 org.geoserver:gs-wms (Maven) Fixed in 2.25.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-21621
- 2026-10-03 Alias added: GHSA-w66h-j855-qr72
References
Advisory 2
More Geoserver vulnerabilities
- TI-2024-24187 Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver KEVCVSS 3.1CRITICAL 9.8
- TI-2025-36149 GeoServer is vulnerable to an Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature KEVCVSS 3.1CRITICAL 9.8
- TI-2023-17518 GeoServer 2, in some configurations, allows remote attackers to execute arbitrary code… CVSS 3.1CRITICAL 9.8
- TI-2023-28098 GeoServer arbitrary file upload vulnerability in REST Coverage Store API CVSS 3.1HIGH 7.2
- TI-2024-15662 GeoServer Stored Cross-Site Scripting (XSS) vulnerability in GWC Seed Form CVSS 3.1MEDIUM 4.8
- TI-2023-28099 GeoServer Stored Cross-Site Scripting (XSS) vulnerability in REST Resources API CVSS 3.1MEDIUM 4.8
Sources
- CVE-2025-21621 · CVE Program
- CVE-2025-21621 · NVD
- FIRST EPSS
- GHSA-w66h-j855-qr72 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences