CVE-2026-77325
MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header
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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| MapServer MapServer |
>= 6.0, < 8.6.5 (affected) | CNA: GitHub_M |
MapServer OpenLayers viewerMapServer OpenLayers viewer
|
>= 6.0 (affected, GitHub advisory range) | GitHub GHSA-52rr-p4x5-2x6x |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.1 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | CNA: GitHub_M |
| 3.1 / 6.1 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6xCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/MapServer/MapServer/pull/7544CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/pull/7554CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432[email protected]
- https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426[email protected]
- https://github.com/MapServer/MapServer/pull/7544[email protected]
- https://github.com/MapServer/MapServer/pull/7554[email protected]
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5[email protected]
- https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x[email protected]
- https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6xGitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.