# CVE-2026-42030: MapServer: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in OpenLayers viewer

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T15:56:48.553Z
- Modified: 2026-11-11T20:10:00.273Z
- Weaknesses: CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MapServer MapServer: >= 6.0, < 8.6.2
- osgeo mapserver: from 6.0.0 before 8.6.2

## References

- <https://github.com/MapServer/MapServer/security/advisories/GHSA-4g9f-ph64-hg2x> (exploit, vendor-advisory)
- <https://github.com/MapServer/MapServer/releases/tag/rel-8-6-2> (product, release-notes)

## Sources

- CVE List: [CVE-2026-42030](https://www.cve.org/CVERecord?id=CVE-2026-42030), CVE Terms of Use, modified 2026-05-08
- NVD: [CVE-2026-42030](https://nvd.nist.gov/vuln/detail/CVE-2026-42030), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-42030 · Whole record: https://cve.day/CVE-2026-42030.json · Rebuilt by cve.day 2026-11-25T22:59:21.102Z
