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

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-11-25T18:41:53.000Z
- Modified: 2026-11-30T19:14:34.723Z
- Also known as: GHSA-w66h-j855-qr72
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/geoserver/geoserver/security/advisories/GHSA-w66h-j855-qr72> (vendor-advisory, web)
- <https://github.com/geoserver/geoserver/pull/7406> (issue-tracking, web)
- <https://github.com/geoserver/geoserver/commit/dc9ff1c726dd73c884437a123b4ad72b19383c7d> (patch, web)
- <https://osgeo-org.atlassian.net/browse/GEOS-11297> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-21621> (advisory)
- <https://github.com/geoserver/geoserver> (package)
- <https://osgeo-org.atlassian.net/browse/GEOS-11203> (web)

## Sources

- CVE List: [CVE-2025-21621](https://www.cve.org/CVERecord?id=CVE-2025-21621), CVE Terms of Use, modified 2025-11-26
- GitHub Advisory Database: [GHSA-w66h-j855-qr72](https://github.com/advisories/GHSA-w66h-j855-qr72), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-21621](https://nvd.nist.gov/vuln/detail/CVE-2025-21621), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2025-21621 · Whole record: https://cve.day/CVE-2025-21621.json · Rebuilt by cve.day 2026-11-30T19:17:34.299Z
