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

 

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

Published: August 27, 2026


Vulnerability identifier: #VU146006
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-54355
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 OpenLayers HTML output when processing a WMS GetMap request with FORMAT=application/openlayers and an attacker-controlled X-Forwarded-Host value reaches HTTP_X_FORWARDED_HOST. A remote attacker can send a specially crafted request or crafted URL to execute arbitrary JavaScript in the victim\'s browser.

User interaction is required to open an attacker-crafted URL, and exploitation depends on deployments that pass externally controlled forwarded host headers to MapServer and do not override the generated online resource with a fixed trusted value.


Affected software

MapServer

How to mitigate CVE-2026-54355

Install security update from vendor's website.

MapServer - update to 8.6.4

External References

Related Security Bulletins