Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MapServer | MapServer | < 8.6.5 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mapserver | 8.6.5-1 | — |
| Debian 13 | mapserver | No fix yet | — |
| Debian 12 | mapserver | 8.0.0-3+deb12u2 | DLA-4935-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | mapserver | No fix yet | — |
| Ubuntu 24.04 LTS | mapserver | No fix yet | — |
| Ubuntu 22.04 LTS | mapserver | No fix yet | — |
| Ubuntu 20.04 LTS | mapserver | No fix yet | — |
| Ubuntu 18.04 LTS | mapserver | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | mapserver | No fix yet | — |
Advisories 1
- DLA-4935-1 mapserver - security update Debian Security (DSA / DLA) · Nov 25, 2026
References
- https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr
- https://github.com/MapServer/MapServer/pull/7573
- https://github.com/MapServer/MapServer/commit/3bfd0071f74d55b43301ba57f8c4a1425789e0c4
- https://github.com/MapServer/MapServer/commit/47720e835de4d80a602210461d3b52c9f3d5c34c
- https://github.com/MapServer/MapServer/commit/5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5