Cross-site scripting in MapServer - CVE-2026-77325
Published: August 27, 2026
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.