Skip to main content
EPSS 0.7%top 50%

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)

0
Medium
Published: 09/17/2026 (09/17/2026, 21:17:00 UTC)
Source: GCVE Database
Product: mapserver

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Affected software

Ubuntu:16.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=xenial
Affected versions
=7.0.0-4build1=7.0.0-5ubuntu1=7.0.0-7=7.0.0-8=7.0.0-8build1=7.0.0-9=7.0.0-9ubuntu1=7.0.0-9ubuntu2=7.0.0-9ubuntu3=7.0.0-9ubuntu3.1
Ubuntu:18.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=bionic
Affected versions
=7.0.6-2build1=7.0.7-1=7.0.7-1build1=7.0.7-1build2
Ubuntu:20.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=focal
Affected versions
=7.4.1-1build1=7.4.1-1build3=7.4.2-1=7.4.2-1build1=7.4.3-1=7.4.3-1build2=7.4.3-2=7.4.3-2build1
Ubuntu:22.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=jammy
Affected versions
=7.6.3-1~exp1ubuntu1=7.6.4-2=7.6.4-2build2
Ubuntu:24.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=noble
Affected versions
=8.0.1-2build1=8.0.1-2build2=8.0.1-2build3=8.0.1-2build5=8.0.1-4ubuntu1=8.0.1-4ubuntu2
Ubuntu:26.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=resolute
Affected versions
=8.4.0-4build1=8.4.1-1=8.4.1-1build1=8.4.1-2=8.4.1-2build1=8.6.0-1=8.6.0-1build1

Run 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

AILast updated: 09/24/2026, 06:51:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses