{"id":"CVE-2026-42030","summary":"MapServer: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in OpenLayers viewer","details":"MapServer is a system for developing web-based GIS applications. From version 6.0 to before version 8.6.2, a reflected XSS vulnerability in MapServer's WMS server allows an unauthenticated attacker to inject arbitrary HTML/JavaScript into the browser of any user who opens a crafted WMS URL. The vulnerability is triggered via FORMAT=application/openlayers combined with an unsanitized SRS parameter in WMS 1.3.0 requests. This issue has been patched in version 8.6.2.","aliases":["GHSA-4g9f-ph64-hg2x"],"modified":"2026-08-12T03:51:12.829775758Z","published":"2026-05-08T15:56:48.553Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42030.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-80"]},"references":[{"type":"WEB","url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42030.json"},{"type":"ADVISORY","url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-4g9f-ph64-hg2x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42030"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mapserver/mapserver","events":[{"introduced":"a7e04b01eab44f9f027fab5f1081eb18d9453212"},{"fixed":"141a832fd63a62e4a82403ca2a25ea3e892f8b9b"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:osgeo:mapserver:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"6.0"},{"fixed":"8.6.2"},{"introduced":"6.0.0"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42030.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}