Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-77323 EUVD-2026-131825

MapServer Reflected XSS via unescaped offset/limit query params injected into <script> in OGC API Features HTML output

Published Nov 20, 2026 · Updated Nov 25, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 mapserver 8.6.5-1 —
Debian 13 mapserver No fix yet —
Debian 12 mapserver 8.0.0-3+deb12u2 DLA-4935-1
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS mapserver No fix yet —

Advisories 1

References