Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.geoserver.web/gs-web-app
  4. ›
  5. CVE-2025-21621

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

November 25, 2025 (updated November 27, 2025)

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.

References

  • github.com/advisories/GHSA-w66h-j855-qr72
  • github.com/geoserver/geoserver
  • github.com/geoserver/geoserver/commit/dc9ff1c726dd73c884437a123b4ad72b19383c7d
  • github.com/geoserver/geoserver/pull/7406
  • github.com/geoserver/geoserver/security/advisories/GHSA-w66h-j855-qr72
  • nvd.nist.gov/vuln/detail/CVE-2025-21621
  • osgeo-org.atlassian.net/browse/GEOS-11203
  • osgeo-org.atlassian.net/browse/GEOS-11297

Code Behaviors & Features

Detect and mitigate CVE-2025-21621 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.25.0

Fixed versions

  • 2.25.0

Solution

Upgrade to version 2.25.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.geoserver.web/gs-web-app/CVE-2025-21621.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.