CVE-2026-77323
MapServer Reflected XSS via unescaped offset/limit query params injected into <script> in OGC API Features HTML output
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.
Fixes and workarounds
Fix
OGCAPI Features support in MapServer: GitHub reports patched versions 8.6.5. Check the advisory for the affected release branch.
Source: GitHub GHSA-288j-mhpj-gmmrAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| MapServer MapServer |
< 8.6.5 (affected) | CNA: GitHub_M |
OGCAPI Features support in MapServerOGCAPI Features support in MapServer
|
<= 8.6.4 (affected, GitHub advisory range) | GitHub GHSA-288j-mhpj-gmmr |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 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 | CNA: GitHub_M |
| 4.0 / 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmrCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/MapServer/MapServer/pull/7573CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/3bfd0071f74d55b43301ba57f8c4a1425789e0c4CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/47720e835de4d80a602210461d3b52c9f3d5c34cCNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/3bfd0071f74d55b43301ba57f8c4a1425789e0c4[email protected]
- https://github.com/MapServer/MapServer/commit/47720e835de4d80a602210461d3b52c9f3d5c34c[email protected]
- https://github.com/MapServer/MapServer/commit/5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9[email protected]
- https://github.com/MapServer/MapServer/pull/7573[email protected]
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5[email protected]
- https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr[email protected]
- https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmrGitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.