Skip to main content

MapServer CVE-2026-42030

| EUVDEUVD-2026-28807 MEDIUM
Basic XSS (CWE-80)
2026-05-08 GitHub_M
6.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious WMS URL
  2. Delivery
    Attacker distributes via phishing/social engineering
  3. Exploit
    User opens crafted URL in browser
  4. Install
    MapServer receives WMS 1.3.0 request
  5. C2
    OpenLayers template renders unsanitized SRS parameter
  6. Execute
    JavaScript executes in user's browser context
  7. Impact
    Attacker steals session cookies or credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires specific conditions: (1) WMS 1.3.0 request must be sent to MapServer (WMS version specification); (2) FORMAT parameter must be set to application/openlayers (specific content type); (3) SRS parameter must contain attacker-controlled, unsanitized payload; (4) user must click a crafted WMS URL or the URL must be embedded in a page that automatically loads the WMS request. Exploitation does NOT require authentication (PR:N in CVSS vector), does NOT require special server configuration (WMS is enabled by default), and does NOT require the attacker to have direct access to the MapServer instance. However, exploitation is limited by the requirement that a user must interact with the malicious link (UI:R), meaning unsuspecting users who receive phishing emails or visit malicious pages are the attack vector. Default MapServer deployments with public WMS endpoints are vulnerable.

Impact

CVSS 6.1 (Medium) reflects network vector with low complexity and no authentication required, but critically requires user interaction (UI:R) and only causes limited confidentiality and integrity impact (C:L/I:L). The CVSS vector indicates reflected XSS rather than stored XSS or RCE. While the network accessibility is high and attack complexity is low, real-world risk depends heavily on whether MapServer instances are exposed to untrusted networks and whether users can be socially engineered to click malicious links. The vulnerability is not listed as actively exploited (no CISA KEV status provided), and no public POC has been identified. The scoped impact (S:C) suggests the attack may affect other security domains (e.g., session hijacking, credential theft). For organizations running public WMS services, this poses a moderate risk to end users; for internal or restricted deployments, risk is lower. The fact that vendor released an immediate patch (8.6.2) and explicitly advised all users to upgrade suggests vendor severity assessment was moderate to high.

Exploit ScenarioDerived

An attacker crafts a WMS URL containing malicious JavaScript in the SRS parameter with FORMAT=application/openlayers, e.g., http://vulnerable-mapserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=application/openlayers&SRS=%27%3Csvg/onload=alert('XSS')%3E. The attacker shares this URL via email, forum post, or malicious website. When a user clicks the link, MapServer renders the unsanitized SRS parameter into the OpenLayers HTML template, executing the attacker's JavaScript in the user's browser with the privileges of the MapServer origin, allowing cookie theft, session hijacking, or further attacks against the mapping application.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Reflected XSS in MapServer 6.0 through 8.6.1 allows unauthenticated remote attackers to inject arbitrary HTML and JavaScript into the browsers of users clicking crafted WMS URLs. The vulnerability exists in the OpenLayers template when FORMAT=application/openlayers is combined with an unsanitized SRS parameter in WMS 1.3.0 requests. MapServer 8.6.2 patches this issue, and no public exploit code or active exploitation has been confirmed, though the attack requires user interaction (clicking a malicious link).

RemediationAI

Upgrade MapServer to version 8.6.2 or later immediately. Vendor-released patch: MapServer 8.6.2 (released with accompanying security advisory). No workarounds are documented for unsupported branches (7.6, 8.0, 8.2, 8.4). If upgrading is not immediately feasible, apply network-level mitigations: restrict WMS endpoint access via Web Application Firewall (WAF) rules to block FORMAT=application/openlayers requests with suspicious or non-standard SRS parameter values, or require authentication for WMS access (trade-off: may break public-facing map services). Alternatively, disable the OpenLayers template entirely if not required for your application. See vendor migration guide at https://mapserver.org/MIGRATION_GUIDE.html and changelog at https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6.

Affected VersionsENISA

MapServer 6.0, < 8.6.2

Affected Packages

euvd mapserver_6_0 fix: 8.6.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MapServer is a geospatial data publishing platform that exposes WMS (Web Map Service) endpoints. The vulnerability originates in the OpenLayers template, which renders WMS responses. WMS 1.3.0 includes an SRS (Spatial Reference System) parameter that MapServer fails to sanitize before inserting it into HTML output when the FORMAT parameter is set to application/openlayers. This allows an attacker to break out of HTML context and inject arbitrary script tags or event handlers. The root cause is improper output encoding in a templating context (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page). The affected CPE indicates all MapServer versions from 6.0 onward until the 8.6.2 release are vulnerable.

Know when Mapserver gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
SUSE MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
May 08, 2026 - 18:03 EUVD
CVE Published
May 08, 2026 - 15:56 nvd
MEDIUM 6.1

DescriptionGitHub Advisory

MapServer is a system for developing web-based GIS applications. From version 6.0 to before version 8.6.2, a reflected XSS vulnerability in MapServer's WMS server allows an unauthenticated attacker to inject arbitrary HTML/JavaScript into the browser of any user who opens a crafted WMS URL. The vulnerability is triggered via FORMAT=application/openlayers combined with an unsanitized SRS parameter in WMS 1.3.0 requests. This issue has been patched in version 8.6.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Medium

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy