Skip to main content

MapServer EUVDEUVD-2026-131825

| CVE-2026-77323 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 security-advisories@github.com
5.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious offset/limit link
  2. Delivery
    Deliver URL to victim via phishing
  3. Exploit
    Victim's browser requests collection-items HTML
  4. Execution
    Unescaped param closes <script>, injects markup
  5. Persist
    onerror fires JavaScript in MapServer origin
  6. Impact
    Steal session data / act as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

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

Exploitation Conditions

Exploitation requires that the target exposes MapServer's OGC API Features interface with HTML output (f=html) for a collection-items endpoint, e.g. via mapserv CGI at a path like /cgi-bin/mapserv.exe/.../collections/<layer>/items?f=html, which is the feature containing the vulnerable collection-items.html template. No authentication and no database write are required (PR:N). The principal limiting factor is required user interaction (UI:P): a victim must follow the attacker-crafted link carrying the offset or limit payload; the flaw is reflected, not stored, so it does not self-propagate and affects only users who open the malicious URL. Hosts not serving the OGC API Features HTML output are not exposed.

Impact

This is a genuine but moderate-severity issue, not a drop-everything emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 5.3) describes unauthenticated, network-reachable, low-complexity reflected XSS whose only gating factor is required victim interaction (UI:P) - the victim must follow an attacker-crafted link. Impact is confined to the subsequent system (the victim's browser session): VC:N/VI:N/VA:N on the MapServer host itself but SC:L/SI:L reflecting script execution and content manipulation in the victim context, consistent with reflected XSS. KEV status is not present in the input, so this is NOT confirmed actively exploited; EPSS is not provided, so widespread-exploitation probability cannot be quantified. The GitHub Security Advisory (GHSA-288j-mhpj-gmmr) contains a full, URL-encoded proof-of-concept that the reporter states was confirmed to execute against MapServer 8.6.x on Windows, with screenshots - so working exploit detail is public even though a labeled 'POC confirmed' field is absent from the input. The vuln.today priority is 'this_month', aligning with a real-but-not-critical reflected XSS requiring user interaction. Net: prioritize patching to 8.6.5 within a normal cycle; the main real-world driver of risk is the publicly documented, reproducible payload rather than any evidence of mass exploitation.

Exploit ScenarioDerived

An attacker crafts a link to a target MapServer OGC API Features collection-items HTML endpoint with a malicious offset (or limit) parameter such as '</script><img src=x onerror=alert(document.domain)>' and delivers it to a victim via phishing, chat, or a malicious page. When the victim follows the link, the unescaped value closes the surrounding <script> element and the injected markup fires, executing attacker JavaScript under the MapServer origin. A detailed, URL-encoded PoC confirmed by the reporter to execute against MapServer 8.6.x is published in the GitHub advisory.

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

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

Alert me

AnalysisAIv1 – Nov 20, 2026

Reflected cross-site scripting in MapServer's OGC API Features HTML output lets an attacker run arbitrary JavaScript under the MapServer origin when a victim opens a crafted collection-items link. MapServer 8.6.4 and earlier interpolate the raw CGI offset and limit query parameters into a <script> block in share/ogcapi/templates/html-bootstrap/collection-items.html without quoting, escaping or numeric validation, so attacker markup can close the script element and inject an event-handler payload. The flaw is unauthenticated (PR:N) but requires the victim to follow the crafted URL (UI:P); the vendor's GitHub advisory documents a working proof-of-concept payload confirmed against MapServer 8.6.x on Windows, and the issue is fixed in 8.6.5. No CISA KEV entry or EPSS score was supplied, and this is assessed as a genuine but moderate-severity issue rather than a drop-everything emergency.

RemediationAI

Vendor-released patch: upgrade to MapServer 8.6.5, the release that contains the fix (https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5), delivered through PR 7573 and commits 3bfd0071f74d55b43301ba57f8c4a1425789e0c4, 47720e835de4d80a602210461d3b52c9f3d5c34c and 5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9; patch status is confirmed by the GitHub advisory GHSA-288j-mhpj-gmmr. Because the issue is a reflected XSS in the OGC API Features HTML template, hosts that do not serve the collection-items HTML output (f=html) are not exposed, so disabling or restricting that output until the upgrade is applied removes the exposure path - at the cost of losing the HTML rendering of collection items for clients that rely on it. There is no indication in the available sources that the reflection is reachable through non-HTML output formats.

Affected VersionsENISA

MapServer < 8.6.5

Affected Packages

euvd mapserver fix: 8.6.5

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

The vulnerable path is MapServer's OGC API Features implementation, which renders HTML views of collection items through its Inja-based output template engine (msOGCAPIOutputTemplate). In src/mapogcapi.cpp the raw CGI request is copied verbatim into the template context: every request->ParamNames[i]/request->ParamValues[i] pair is merged into the template.params object, so any query-string value reaches the template untouched. The shipped template share/ogcapi/templates/html-bootstrap/collection-items.html then emits offset = {{ template.params.offset }}; and limit = {{ template.params.limit }}; inside a <script> element. Inja does not auto-escape - its Renderer::print_json writes string values straight through with no HTML or JavaScript encoding, and no escape callback is registered in mapogcapi.cpp - and the response is served as text/html. This is a classic CWE-79 reflected XSS: the HTML parser terminates the script at an injected literal </script> regardless of JavaScript syntax, so the attacker does not need syntactically valid inline JS, only a tag that closes the script and an element whose handler fires (the advisory uses <img src=x onerror=...>). CWE-80 (improper neutralization of script-related HTML tags) is also cited by the advisory. The fix commit set touches src/mapogcapi.cpp and the template path via PR 7573.

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

Vendor (github) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Network-reachable, low-complexity, unauthenticated reflected XSS requiring victim link-follow (UI:R); scope changes to the browser (S:C) with low confidentiality/integrity impact, no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 21:04 EUVD

DescriptionCVE.org

MapServer is a system for developing web-based GIS applications. Prior to 8.6.5, an unauthenticated reflected cross-site scripting vulnerability in OGC API Features collection-items HTML output allows crafted offset or limit query parameter values from raw CGI request handling in src/mapogcapi.cpp to reach template.params.offset or template.params.limit. share/ogcapi/templates/html-bootstrap/collection-items.html inserts those values without quoting or escaping into a script element. A victim who follows a crafted request can have the script element terminated by attacker-controlled markup, causing arbitrary JavaScript to execute under the MapServer origin and enabling access to browser-session data, actions as the victim, and content manipulation. This issue is fixed in 8.6.5.

Threat Intelligence Overview

EPSS Score
0.8%
Top 43% exploitable
Prevalence
Medium
widely used open-source GIS web server, common in geospatial but niche overall
Data Quality
6 sources
Confidence: High

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.8%
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
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.

CVE-2025-59431 HIGH POC
8.9 Sep 19

MapServer is a system for developing web-based GIS applications. Rated high severity (CVSS 8.9), this vulnerability is r

CVE-2017-5522 CRITICAL
9.8 Mar 15

Stack-based buffer overflow in MapServer before 6.0.6, 6.2.x before 6.2.4, 6.4.x before 6.4.5, and 7.0.x before 7.0.4 al

CVE-2026-54354 HIGH
8.2 Sep 17

Unauthenticated SQL injection in MapServer 8.4.0 through 8.6.3 lets remote attackers who can reach a PostGIS-backed quer

CVE-2016-9839 HIGH
7.5 Dec 08

In MapServer before 7.0.3, OGR driver error messages are too verbose and may leak sensitive information if data connecti

CVE-2026-45104 HIGH
7.5 May 27

Denial of service in MapServer 6.4.0 through 8.6.2 allows remote unauthenticated attackers to crash the server by submit

CVE-2026-77328 MEDIUM
6.9 Nov 20

Second-order SQL injection in MapServer's PostgreSQL JOIN implementation, present through 8.6.4, lets an attacker who ca

CVE-2013-7262 MEDIUM
6.8 Jan 05

SQL injection vulnerability in the msPostGISLayerSetTimeFilter function in mappostgis.c in MapServer before 6.4.1, when

CVE-2026-77325 MEDIUM
6.1 Nov 20

Reflected cross-site scripting in MapServer's WMS OpenLayers viewer output (FORMAT=application/openlayers or template=op

CVE-2026-42030 MEDIUM
6.1 May 08

Reflected XSS in MapServer 6.0 through 8.6.1 allows unauthenticated remote attackers to inject arbitrary HTML and JavaSc

CVE-2026-54355 MEDIUM
5.3 Sep 17

Reflected cross-site scripting (CWE-79) in MapServer's OpenLayers HTML output affects versions 6.0 through 8.6.3 and is

CVE-2026-33721 MEDIUM
5.3 Mar 27

MapServer versions 4.2 through 8.6.0 are vulnerable to a heap buffer overflow in the SLD (Styled Layer Descriptor) parse

CVE-2021-32062 MEDIUM
5.3 May 06

MapServer before 7.0.8, 7.1.x and 7.2.x before 7.2.3, 7.3.x and 7.4.x before 7.4.5, and 7.5.x and 7.6.x before 7.6.3 doe

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