The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42030

CVE-2026-42030: OSGeo MapServer WMS XSS Vulnerability

CVE-2026-42030 is a reflected XSS flaw in OSGeo MapServer's WMS server that lets attackers inject malicious scripts via crafted URLs. This article covers technical details, affected versions 6.0-8.6.1, impact, and mitigation.

Published: May 18, 2026

CVE-2026-42030 Overview

CVE-2026-42030 is a reflected Cross-Site Scripting (XSS) vulnerability in MapServer, an open-source platform for developing web-based Geographic Information System (GIS) applications. The flaw resides in MapServer's Web Map Service (WMS) server and affects versions from 6.0 up to but not including 8.6.2. An unauthenticated attacker can inject arbitrary HTML or JavaScript into a victim's browser by crafting a malicious WMS URL. Exploitation requires the victim to open the attacker-supplied link. The vulnerability is tracked under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page and was patched in MapServer 8.6.2.

Critical Impact

Successful exploitation enables session hijacking, credential theft, and arbitrary script execution within the trusted origin of the MapServer WMS endpoint.

Affected Products

  • OSGeo MapServer versions 6.0 through 8.6.1
  • MapServer WMS 1.3.0 server endpoints handling the FORMAT=application/openlayers parameter
  • MapServer deployments exposing WMS endpoints to untrusted clients

Discovery Timeline

  • 2026-05-08 - CVE-2026-42030 published to NVD
  • 2026-05-14 - Last updated in NVD database

Technical Details for CVE-2026-42030

Vulnerability Analysis

The vulnerability stems from improper sanitization of the SRS (Spatial Reference System) parameter in WMS 1.3.0 requests. When a client requests FORMAT=application/openlayers, MapServer generates an HTML page embedding an OpenLayers viewer. The server reflects the user-supplied SRS parameter directly into the response HTML without encoding it as safe output. An attacker who controls the URL can therefore inject markup that executes in the victim's browser.

Because the vulnerable endpoint is part of the public WMS interface, no authentication is required to trigger the reflection. The attacker only needs to convince a target to click a crafted link or load it through an embedded resource. The scope changes because injected script runs in the security context of the MapServer origin, granting access to cookies, tokens, and DOM state for that domain.

Root Cause

The root cause is missing output encoding on the SRS parameter when the WMS response is rendered with the application/openlayers format. MapServer trusts the value passed in the query string and concatenates it into HTML used to build the viewer template. This pattern matches [CWE-80], where script-related HTML tags pass through unfiltered.

Attack Vector

The attack vector is network-based and relies on user interaction. An attacker crafts a URL targeting a legitimate MapServer WMS endpoint with parameters such as SERVICE=WMS, VERSION=1.3.0, REQUEST=GetMap, FORMAT=application/openlayers, and an SRS value containing a JavaScript payload. The victim's browser renders the reflected payload, executing attacker-controlled script under the MapServer origin. See the GitHub Security Advisory GHSA-4g9f-ph64-hg2x for full technical details.

Detection Methods for CVE-2026-42030

Indicators of Compromise

  • WMS request logs containing FORMAT=application/openlayers together with SRS values that include angle brackets, script, javascript:, onerror=, or URL-encoded equivalents (%3C, %3E)
  • HTTP referrers pointing to untrusted domains for requests reaching the MapServer WMS endpoint
  • Unusual spikes in GetMap requests with abnormally long or malformed SRS parameter values

Detection Strategies

  • Inspect web server access logs for WMS 1.3.0 requests combining the OpenLayers format with non-standard SRS values that do not match expected EPSG codes such as EPSG:4326 or EPSG:3857
  • Deploy Web Application Firewall (WAF) rules that flag HTML or JavaScript metacharacters within WMS query parameters
  • Correlate browser-side Content Security Policy (CSP) violation reports with MapServer endpoint URLs to surface attempted injections

Monitoring Recommendations

  • Forward MapServer and reverse proxy access logs to a centralized SIEM and alert on anomalous SRS parameter content
  • Monitor outbound traffic from end-user browsers to detect exfiltration triggered by injected scripts loading external resources
  • Track the MapServer version banner in deployment inventory to verify all instances are running 8.6.2 or later

How to Mitigate CVE-2026-42030

Immediate Actions Required

  • Upgrade MapServer to version 8.6.2 or later on all servers exposing WMS endpoints
  • Audit reverse proxies and CDNs in front of MapServer to confirm WMS query parameters are inspected and constrained
  • Notify users and administrators to avoid clicking untrusted WMS URLs until patching is complete

Patch Information

The MapServer maintainers fixed the issue in release 8.6.2. Refer to the MapServer 8.6.2 release notes and the GitHub Security Advisory GHSA-4g9f-ph64-hg2x for upgrade instructions and patch commits. Operators running source builds should pull the rel-8-6-2 tag and rebuild against the same dependency versions used in production.

Workarounds

  • Disable the application/openlayers output format in MapServer configuration if it is not required for production workloads
  • Restrict access to the WMS endpoint with network-level controls or authenticated reverse proxies until the patch is applied
  • Deploy a strict Content Security Policy (CSP) header that disallows inline script execution on the MapServer origin to reduce exploitability
bash
# Configuration example: block the vulnerable format at the reverse proxy (nginx)
location /cgi-bin/mapserv {
    if ($arg_format ~* "application/openlayers") {
        return 403;
    }
    if ($arg_srs ~* "[<>\"']|script|javascript:") {
        return 400;
    }
    proxy_pass http://mapserver_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOsgeo Mapserver

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-80
  • Technical References
  • MapServer Release Note
  • Vendor Resources
  • GitHub Security Advisory GHSA-4g9f-ph64-hg2x
  • Related CVEs
  • CVE-2026-30479: MapServer DLL Injection Vulnerability

  • CVE-2026-33721: OSGeo MapServer Buffer Overflow Flaw

  • CVE-2025-59431: Osgeo MapServer SQLi Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English