CVE-2026-77325MapServer cross-site scripting (XSS)
CVSS score
6.1
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.47%
0.47% chance of exploitation in the next 30 days, higher than 41.9% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running MapServer and compare its version with the affected versions.
Update to a fixed version
- Update MapServer to 8.6.5 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
| Affected products | Versions |
|---|---|
| MapServer MapServer | >= 6.0, < 8.6.5 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-77325 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.5% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-77325?
CVE-2026-77325 has a CVSS 3.1 base score of 6.1 (medium).
Which versions are affected?
Mapserver MapServer (>= 6.0, < 8.6.5)
Is there a patch for CVE-2026-77325?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432
- github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426
- github.com/MapServer/MapServer/pull/7544
- github.com/MapServer/MapServer/pull/7554
- github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.