{"answers":{"affected":"4 open source packages ship an affected version, including org.geoserver.web:gs-web-app and org.geoserver:gs-wms. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-21621 in the wild and no public exploit code.","fix":"Upgrade org.geoserver.web:gs-web-app to 2.25.0 or later.","what":"CVE-2025-21621 is a medium-severity cross-site scripting vulnerability in geoserver, published on 25 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-21621 and fix it if it is affected.\n\nWhat it is: CVE-2025-21621 is a medium-severity cross-site scripting vulnerability in geoserver, published on 25 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-21621 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.geoserver.web:gs-web-app (Maven): affected all versions; fixed in 2.25.0\n- org.geoserver.web:gs-web-app (Maven): affected all versions; fixed in 2.25.0\n- org.geoserver:gs-wms (Maven): affected all versions; fixed in 2.25.0\n- org.geoserver:gs-wms (Maven): affected all versions; fixed in 2.25.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-21621/ (Markdown: https://insights.sbomify.com/CVE-2025-21621/index.md)","id":"CVE-2025-21621","markdown":"https://insights.sbomify.com/CVE-2025-21621/index.md","name":"CVE-2025-21621","record":{"aliases":["GHSA-w66h-j855-qr72"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GeoServer","requires_auth":"none","summary":"Remote attackers can execute arbitrary JavaScript in victims' browsers via crafted SLD_BODY parameters in GeoServer's WMS GetFeatureInfo HTML output.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"geoserver","vendor":"geoserver"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format","id":"CVE-2025-21621","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":4,"n_references":4,"next":{"headline":"ClipBucket V5 Avatar URL Path Traversal to Arbitrary File Delete","id":"CVE-2025-21622"},"packages":[{"ecosystem":"Maven","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":null,"source":"GHSA-w66h-j855-qr72"},{"ecosystem":"Maven","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"GHSA-w66h-j855-qr72"},{"ecosystem":"Maven","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":null,"source":"GHSA-w66h-j855-qr72"},{"ecosystem":"Maven","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":"pkg:maven/org.geoserver/gs-wms","source":"GHSA-w66h-j855-qr72"}],"prev":{"headline":"Deno's authorization headers not dropped when redirecting cross-origin","id":"CVE-2025-21620"},"products":["geoserver"],"published":"2025-11-25","related":[{"cvss_score":9.8,"headline":"OSGeo GeoServer GeoTools Eval Injection","id":"CVE-2024-36401","kev_date_added":"2024-07-15","published":"2024-07-01"},{"cvss_score":8.2,"headline":"OSGeo GeoServer Improper Restriction of XML External Entity Reference","id":"CVE-2025-58360","kev_date_added":"2025-12-11","published":"2025-11-25"},{"cvss_score":9.8,"headline":"GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language","id":"CVE-2023-35042","kev_date_added":null,"published":"2023-06-12"},{"cvss_score":7.5,"headline":"Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat","id":"CVE-2024-24749","kev_date_added":null,"published":"2024-07-01"},{"cvss_score":7.2,"headline":"GeoServer log file path traversal vulnerability","id":"CVE-2023-41877","kev_date_added":null,"published":"2024-03-20"},{"cvss_score":7.2,"headline":"GeoServer arbitrary file upload vulnerability in REST Coverage Store API","id":"CVE-2023-51444","kev_date_added":null,"published":"2024-03-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-26","vendors":["geoserver"]},"summary":"Remote attackers can execute arbitrary JavaScript in victims' browsers via crafted SLD_BODY parameters in GeoServer's WMS GetFeatureInfo HTML output.","url":"https://insights.sbomify.com/CVE-2025-21621/"}