Read the docs

Reflected cross-site scripting in MapServer WMS OpenLayers output

Priority LOW 28CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0058 41st percentileScored 2026-11-30
Fix Fixed MapServer (MapServer): 8.6.5

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

VendorProductAffected versionsFixed inStatusSource
OSGeoMapServer6.0 to before 8.6.58.6.5Patch availableCNA
  • MapServer VendorOSGeo Affected 6.0 to before 8.6.5 Fixed in 8.6.5 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:osgeo:mapserver:*:*:*:*:*:*:*:*——OSGeo
  • cpe:2.3:a:osgeo:mapserver:*:*:*:*:*:*:*:* Versions — — ·OSGeo

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

  1. 2026-11-20 Threatist record created from CVE-2026-77325
  2. 2026-11-24 CISA SSVC decision points changed

References

  • 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
See all 89 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences