From 6.0 until 8.6.4, MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an… (CVE-2026-54355)
MapServer versions from 6.0 up to 8.6.4 have a vulnerability in the OpenLayers HTML output for WMS GetMap requests with application/openlayers format. The vulnerability allows an attacker to inject arbitrary JavaScript by manipulating the X-Forwarded-Host HTTP header when the deployment trusts this header and does not set fixed online resource values. This can lead to cross-site scripting (XSS) attacks, enabling session token theft and unauthorized actions in the context of the victim's browser. The issue is fixed in version 8.6.4.
AI Analysis
Technical Summary
MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host HTTP header value without proper escaping in JavaScript single-quoted strings. This occurs through the msBuildOnlineResource(), processLine(), and [mapserv_onlineresource] substitution mechanisms in the source code. When the deployment trusts the forwarded header and does not configure fixed ows_onlineresource or MS_ONLINERESOURCE values, an attacker can craft a URL that executes arbitrary JavaScript in the MapServer site origin. This vulnerability affects versions from 6.0 until 8.6.4 and is resolved in 8.6.4.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to execute arbitrary JavaScript in the context of the victim's browser when visiting a crafted URL. This enables theft of session tokens, access to same-origin data and requests, and performing actions on behalf of the victim within the MapServer site origin. The impact is a cross-site scripting (XSS) vulnerability leading to potential account compromise or unauthorized actions.
Mitigation Recommendations
This vulnerability is fixed in MapServer version 8.6.4. Users should upgrade to version 8.6.4 or later to remediate this issue. If upgrading is not immediately possible, ensure that the deployment does not trust the X-Forwarded-Host header by configuring fixed values for ows_onlineresource or MS_ONLINERESOURCE to prevent injection of attacker-controlled values. No other specific mitigations are indicated.
From 6.0 until 8.6.4, MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an… (CVE-2026-54355)
Description
MapServer versions from 6.0 up to 8.6.4 have a vulnerability in the OpenLayers HTML output for WMS GetMap requests with application/openlayers format. The vulnerability allows an attacker to inject arbitrary JavaScript by manipulating the X-Forwarded-Host HTTP header when the deployment trusts this header and does not set fixed online resource values. This can lead to cross-site scripting (XSS) attacks, enabling session token theft and unauthorized actions in the context of the victim's browser. The issue is fixed in version 8.6.4.
CVSS v4.0
Affected software
pkg:deb/ubuntu/mapserver?arch=source&distro=xenialpkg:deb/ubuntu/mapserver?arch=source&distro=bionicpkg:deb/ubuntu/mapserver?arch=source&distro=focalpkg:deb/ubuntu/mapserver?arch=source&distro=jammypkg:deb/ubuntu/mapserver?arch=source&distro=noblepkg:deb/ubuntu/mapserver?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host HTTP header value without proper escaping in JavaScript single-quoted strings. This occurs through the msBuildOnlineResource(), processLine(), and [mapserv_onlineresource] substitution mechanisms in the source code. When the deployment trusts the forwarded header and does not configure fixed ows_onlineresource or MS_ONLINERESOURCE values, an attacker can craft a URL that executes arbitrary JavaScript in the MapServer site origin. This vulnerability affects versions from 6.0 until 8.6.4 and is resolved in 8.6.4.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to execute arbitrary JavaScript in the context of the victim's browser when visiting a crafted URL. This enables theft of session tokens, access to same-origin data and requests, and performing actions on behalf of the victim within the MapServer site origin. The impact is a cross-site scripting (XSS) vulnerability leading to potential account compromise or unauthorized actions.
Mitigation Recommendations
This vulnerability is fixed in MapServer version 8.6.4. Users should upgrade to version 8.6.4 or later to remediate this issue. If upgrading is not immediately possible, ensure that the deployment does not trust the X-Forwarded-Host header by configuring fixed values for ows_onlineresource or MS_ONLINERESOURCE to prevent injection of attacker-controlled values. No other specific mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-54355
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
- Cvss Version
- 4.0
Threat ID: 6ab4be64f7a7c54106f0d3b9
Added to database: 09/24/2026, 06:08:36 UTC
Last enriched: 09/24/2026, 06:51:03 UTC
Last updated: 09/25/2026, 01:47:43 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.