Reflected cross-site scripting in MapServer WMS OpenLayers output
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
MapServer from 6.0 before 8.6.5 has a cross-site scripting flaw in its WMS OpenLayers output, selected by FORMAT=application/openlayers or template=openlayers. The earlier fix escaped JavaScript string content but did not neutralize angle brackets, so attacker-controlled X-Forwarded-Host or X-Forwarded-Proto values can end the script element (CWE-79). An unauthenticated attacker can make arbitrary JavaScript run in a victim's browser under the MapServer origin when the victim loads the crafted output, which requires user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.5, MapServer's WMS OpenLayers output, selected by FORMAT=application/openlayers or template=openlayers, substitutes a request-derived online-resource value into a single-quoted JavaScript string in src/maptemplate.c. The prior remediation for GHSA-xqj6-vjqr-33vv used msEscapeJSonLikeString() to protect the JavaScript string but did not neutralize angle brackets, so attacker-controlled X-Forwarded-Host or X-Forwarded-Proto values can still terminate the script element at the HTML parser layer. Deployments that expose attacker-controlled PATH_INFO or map= values reaching the same string are also affected. An unauthenticated attacker can cause arbitrary JavaScript to execute in a victim's browser under the MapServer origin when the victim loads the crafted output. This issue is fixed in version 8.6.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade MapServer to version 8.6.5. The sources list no other fixed version for MapServer.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA MapServer (MapServer) Fixed in 8.6.5
Timeline
- 2026-11-20 Threatist record created from CVE-2026-77325
- 2026-11-24 CISA SSVC decision points changed
References
Other 6
- https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x
- https://github.com/MapServer/MapServer/pull/7544
- https://github.com/MapServer/MapServer/pull/7554
- https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432
- https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5
More OSGeo vulnerabilities
- TI-2024-24187 Remote code execution in GeoServer via property name expressions KEVCVSS 3.1CRITICAL 9.8
- TI-2022-08629 Code generation flaw in jai-ext enables remote code execution KEVCVSS 3.1CRITICAL 10.0
- TI-2025-36149 Unauthenticated XXE in GeoServer WMS GetMap request KEVCVSS 3.1CRITICAL 9.8
- TI-2026-101125 Service security bypass in GeoServer via prefixed service names KEVCVSS 4.0HIGH 8.8
- TI-2026-101124 Unauthenticated XML injection in GeoServer WFS GetFeatureById KEVCVSS 3.1HIGH 8.6
- TI-2025-36983 MapServer - WFS XML Filter Query SQL injection CVSS 4.0HIGH 8.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences