cve.bz

CVE-2026-54355 mapserver mapserver: Cross-site Scripting

5.3 mediumEPSS 0.5%

Medium (5.3) in mapserver mapserver. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.4, MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host value received as HTTP_X_FORWARDED_HOST through msBuildOnlineResource(), processLine(), and the [mapserv_onlineresource] substitution in src/maputil.c and src/maptemplate.c without escaping it for a single-quoted JavaScript string. When the deployment trusts the forwarded header and does not configure a fixed ows_onlineresource or MS_ONLINERESOURCE value, embedded single quotes can escape the generated URL string. An unauthenticated attacker can craft a URL that executes arbitrary JavaScript in the MapServer site origin when opened by a victim, enabling access to sessions or tokens, same-origin data and requests, and actions as the victim. This issue is fixed in version 8.6.4.

Severity

CVSS 4.0

5.3 medium
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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-09-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-54355 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54355?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54355?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54355 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MapServer>= 6.0, < 8.6.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13mapserverno fix listedDEBIAN-CVE-2026-54355
Debian14mapserver8.6.4-1DEBIAN-CVE-2026-54355
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 moremapserverno fix listedUBUNTU-CVE-2026-54355

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has rated this vulnerability as Important severity because an unauthenticated remote attacker can execute arbitrary script code within an authenticated user's browser session, potentially compromising sensitive session tokens and application data. Successful exploitation requires tricking a victim into following a crafted link requesting OpenLayers WMS map output against a deployment that trusts forwarded host headers. While this permits cross-site scripting without prior authentication, the flaw is restricted to specific endpoint requests and depends on user interaction.

Red Hat's mitigation

To mitigate this issue, configure a fixed and trusted value for `ows_onlineresource` or `MS_ONLINERESOURCE` within the MapServer configuration. Alternatively, ensure that the `HTTP_X_FORWARDED_HOST` header is not trusted by the MapServer deployment, for example, by configuring a reverse proxy or web server in front of MapServer to sanitize or override this header. Changes to MapServer configuration may require a service reload or restart to take effect.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54355.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON