CVE-2025-21621
Java vulnerability analysis and mitigation

Overview

A reflected cross-site scripting (XSS) vulnerability (CVE-2025-21621) was discovered in GeoServer's WMS GetFeatureInfo HTML output format. The vulnerability affects versions prior to 2.25.0 and enables remote attackers to execute arbitrary JavaScript code in victims' browsers through specially crafted SLD_BODY parameters (GitHub Advisory).

Technical details

The vulnerability exists due to improper neutralization of input during web page generation (CWE-79) in the WMS GetFeatureInfo HTML output format. The WMS service setting that controls HTML auto-escaping was either disabled by default or missing in affected versions. The vulnerability has a CVSS v3.1 base score of 6.1 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating network accessibility, low attack complexity, no privileges required, and user interaction required (GitHub Advisory).

Impact

If successfully exploited, an attacker could: perform any action within the application that the user can perform, view any information that the user is able to view, modify any information that the user is able to modify, and initiate interactions with other application users that appear to originate from the initial victim user (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in GeoServer version 2.25.0. For affected versions, several workarounds are available: enable GetFeatureInfo HTML auto-escaping (available in GeoServer 2.21.3+ and 2.22.1+), disable dynamic styling, or disable GetFeatureInfo text/html MIME type (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66021HIGH8.6
  • JavaJava
  • com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer
NoNoNov 26, 2025
CVE-2025-58360HIGH8.2
  • JavaJava
  • org.geoserver.web:gs-web-app
NoYesNov 25, 2025
CVE-2025-65998HIGH7.5
  • JavaJava
  • org.apache.syncope:syncope-core
NoYesNov 24, 2025
CVE-2025-13435MEDIUM6.3
  • JavaJava
  • cn.dreampie:resty
NoNoNov 20, 2025
CVE-2025-21621MEDIUM6.1
  • JavaJava
  • org.geoserver.web:gs-web-app
NoYesNov 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management