What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: geoserver 2.25.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-21621 or the next vulnerability affects your stack