CVE-2025-21621
BaseFortify
Publication date: 2025-11-25
Last updated on: 2025-12-03
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| geoserver | geoserver | to 2.25.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a reflected cross-site scripting (XSS) issue in GeoServer versions prior to 2.25.0. It occurs in the WMS GetFeatureInfo HTML output format, where an attacker can inject malicious JavaScript code through specially crafted SLD_BODY parameters. When a victim's browser processes this malicious input, the attackerβs code executes, potentially compromising the victim's session or data.
How can this vulnerability impact me? :
The vulnerability can allow a remote attacker to execute arbitrary JavaScript code in the browser of anyone who accesses the affected GeoServer service with maliciously crafted requests. This can lead to theft of sensitive information, session hijacking, or other malicious actions performed in the context of the victim's browser session.
What immediate steps should I take to mitigate this vulnerability?
Upgrade GeoServer to version 2.25.0 or later, as this version contains the patch that fixes the reflected cross-site scripting (XSS) vulnerability in the WMS GetFeatureInfo HTML output format.