CVE-2026-77325
CVE-2026-77325 · MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header
CVSS 6.1 · Medium · EPSS 0.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mapserverNo fix published
- mapserver Debian 12Update to 8.0.0-3+deb12u2
- mapserver Debian 13No fix published
- mapserver Debian 14Update to 8.6.5-1
- and 6 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="mapserver"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- DLA-4935-1 · Debian 12 ·
Stack: system
Affected products and versions
mapserver
- Versions
- >= 6.0, < 8.6.5: Affected
No fix published
mapserver Debian 12
- Versions
- 8.0.0-3
- 8.0.0-3+deb12u1
- Affected ranges
- ECOSYSTEM: < 8.0.0-3+deb12u2
Update to 8.0.0-3+deb12u2
mapserver Debian 13
- Versions
- 8.4.0-4
- 8.4.0-4+deb13u1
- 8.4.0-4+deb13u2
- 8.4.1-1
- 8.4.1-1~bpo13+1
- 8.4.1-2
All versions (23)
- 8.6.0-1
- 8.6.0-1~bpo13+1
- 8.6.0~beta1-1~exp1
- 8.6.0~beta2-1~exp1
- 8.6.0~rc1-1~exp1
- 8.6.1-1
- 8.6.1-1~bpo13+1
- 8.6.2-1
- 8.6.2-1~bpo13+1
- 8.6.3-1
- 8.6.3-1~bpo13+1
- 8.6.4-1
- 8.6.4-1~bpo13+1
- 8.6.5-1
- 8.6.5-1~bpo13+1
- 8.6.6-1
- 8.6.6-1~bpo13+1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mapserver Debian 14
- Versions
- 8.4.0-4
- 8.4.1-1
- 8.4.1-1~bpo13+1
- 8.4.1-2
- 8.6.0-1
- 8.6.0-1~bpo13+1
All versions (18)
- 8.6.0~beta1-1~exp1
- 8.6.0~beta2-1~exp1
- 8.6.0~rc1-1~exp1
- 8.6.1-1
- 8.6.1-1~bpo13+1
- 8.6.2-1
- 8.6.2-1~bpo13+1
- 8.6.3-1
- 8.6.3-1~bpo13+1
- 8.6.4-1
- 8.6.4-1~bpo13+1
- 8.6.5-1~bpo13+1
- Affected ranges
- ECOSYSTEM: < 8.6.5-1
Update to 8.6.5-1
mapserver Ubuntu 16.04 LTS
- Versions
- 7.0.0-4build1
- 7.0.0-5ubuntu1
- 7.0.0-7
- 7.0.0-8
- 7.0.0-8build1
- 7.0.0-9
All versions (10)
- 7.0.0-9ubuntu1
- 7.0.0-9ubuntu2
- 7.0.0-9ubuntu3
- 7.0.0-9ubuntu3.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mapserver Ubuntu 18.04 LTS
- Versions
- 7.0.6-2build1
- 7.0.7-1
- 7.0.7-1build1
- 7.0.7-1build2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mapserver Ubuntu 20.04 LTS
- Versions
- 7.4.1-1build1
- 7.4.1-1build3
- 7.4.2-1
- 7.4.2-1build1
- 7.4.3-1
- 7.4.3-1build2
All versions (8)
- 7.4.3-2
- 7.4.3-2build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mapserver Ubuntu 22.04 LTS
- Versions
- 7.6.3-1~exp1ubuntu1
- 7.6.4-2
- 7.6.4-2build2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mapserver Ubuntu 24.04 LTS
- Versions
- 8.0.1-2build1
- 8.0.1-2build2
- 8.0.1-2build3
- 8.0.1-2build5
- 8.0.1-4ubuntu1
- 8.0.1-4ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mapserver Ubuntu 26.04 LTS
- Versions
- 8.4.0-4build1
- 8.4.1-1
- 8.4.1-1build1
- 8.4.1-2
- 8.4.1-2build1
- 8.6.0-1
All versions (7)
- 8.6.0-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-77325