Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious offset/limit link
-
DeliveryDeliver URL to victim via phishing
-
ExploitVictim's browser requests collection-items HTML
-
ExecutionUnescaped param closes <script>, injects markup
-
Persistonerror fires JavaScript in MapServer origin
-
ImpactSteal 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
MapServer is a system for developing web-based GIS applications. Rated high severity (CVSS 8.9), this vulnerability is r
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
Unauthenticated SQL injection in MapServer 8.4.0 through 8.6.3 lets remote attackers who can reach a PostGIS-backed quer
In MapServer before 7.0.3, OGR driver error messages are too verbose and may leak sensitive information if data connecti
Denial of service in MapServer 6.4.0 through 8.6.2 allows remote unauthenticated attackers to crash the server by submit
Second-order SQL injection in MapServer's PostgreSQL JOIN implementation, present through 8.6.4, lets an attacker who ca
SQL injection vulnerability in the msPostGISLayerSetTimeFilter function in mappostgis.c in MapServer before 6.4.1, when
Reflected cross-site scripting in MapServer's WMS OpenLayers viewer output (FORMAT=application/openlayers or template=op
Reflected XSS in MapServer 6.0 through 8.6.1 allows unauthenticated remote attackers to inject arbitrary HTML and JavaSc
Reflected cross-site scripting (CWE-79) in MapServer's OpenLayers HTML output affects versions 6.0 through 8.6.3 and is
MapServer versions 4.2 through 8.6.0 are vulnerable to a heap buffer overflow in the SLD (Styled Layer Descriptor) parse
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
EUVD-2026-131825
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB