CVE-2026-42030

MapServer: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in OpenLayers viewer

Published May 8, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

MapServer versions 6.0 up to (but not including) 8.6.2 contain a reflected XSS flaw that enables an unauthenticated attacker to inject arbitrary HTML or JavaScript into the browser of any user who opens a crafted WMS URL. The flaw is triggered when the request uses FORMAT=application/openlayers in conjunction with an unsanitized SRS parameter in a WMS 1.3.0 request. This weakness falls under CWE‑80 and can allow a malicious actor to hijack sessions, deface content, or exfiltrate data from the victim’s browser.

Affected Systems

The affected product is MapServer, specifically all releases from 6.0 up through 8.6.1. Version 8.6.2 and later contain the fix and are not vulnerable.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity, while no EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog. Because the attack requires only that a user visits a crafted URL, the likelihood of exploitation remains significant for exposed WMS services that still allow the problematic FORMAT parameter and accept unauthenticated requests. Operators can mitigate risk by disabling or sanitizing the openlayers format or by restricting access to trusted networks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MapServer to version 8.6.2 or later
  • Disable the FORMAT=application/openlayers parameter in WMS requests to prevent injection
  • Restrict the WMS service to trusted networks or require authentication for access

Generated by OpenCVE AI on May 8, 2026 at 19:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Osgeo
Osgeo mapserver
CPEs cpe:2.3:a:osgeo:mapserver:*:*:*:*:*:*:*:*
Vendors & Products Osgeo
Osgeo mapserver
Type Values Removed Values Added
First Time appeared Mapserver
Mapserver mapserver
Vendors & Products Mapserver
Mapserver mapserver
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title MapServer: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in OpenLayers viewer
Weaknesses CWE-80
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 8, 2026, 9:26 PM
Reserved
Apr 23, 2026, 4:05 PM
Status
Analyzed
Published
May 8, 2026, 5:16 PM
Modified
Nov 11, 2026, 8:10 PM