Cross-site scripting in MapServer - CVE-2026-77325

 

Cross-site scripting in MapServer - CVE-2026-77325

Published: August 27, 2026


Vulnerability identifier: #VU146009
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-77325
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary JavaScript in the victim's browser.

The vulnerability exists due to cross-site scripting in the WMS OpenLayers GetMap page when rendering request-controlled header values into the `FORMAT=application/openlayers` output. A remote attacker can send a specially crafted request with a malicious `X-Forwarded-Host` header to execute arbitrary JavaScript in the victim's browser.

User interaction is required to load the generated page in a browser, and the issue is reachable on deployments that forward a client-controlled `X-Forwarded-Host` or `X-Forwarded-Proto` header.


Affected software

MapServer

How to mitigate CVE-2026-77325

Install security update from vendor's website.

MapServer - update to 8.6.5

External References

Related Security Bulletins