---
id: CVE-2025-21621
title: >-
  GeoServer is an open source server that allows users to share and edit
  geospatial data
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 remo…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: osgeo
product: geoserver
affected:
  - geoserver < 2.25.0
patched:
  - geoserver 2.25.0
published: '2025-11-25'
updated: '2026-11-30'
sourceUpdated: '2026-11-30T19:14:34.723'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21621'
references:
  - url: >-
      https://github.com/geoserver/geoserver/commit/dc9ff1c726dd73c884437a123b4ad72b19383c7d
    label: security-advisories@github.com
  - url: 'https://github.com/geoserver/geoserver/pull/7406'
    label: security-advisories@github.com
  - url: >-
      https://github.com/geoserver/geoserver/security/advisories/GHSA-w66h-j855-qr72
    label: security-advisories@github.com
  - url: 'https://osgeo-org.atlassian.net/browse/GEOS-11297'
    label: security-advisories@github.com
tags:
  - nvd
  - exploit-available
epss: 0.00553
epssPercentile: 0.47655
ingestedAt: '2026-11-30T19:45:10.603Z'
exploits:
  nuclei:
    - CVE-2025-21621
  checkedAt: '2026-12-03T23:29:14.425Z'
exploitAvailable: true
---

## Overview

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.

## Affected

- `geoserver < 2.25.0`

## Remediation

Upgrade past the affected range:

- `geoserver 2.25.0`
