{"id":"CVE-2026-77323","summary":"MapServer Reflected XSS via unescaped offset/limit query params injected into \u003cscript\u003e in OGC API Features HTML output","details":"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.","aliases":["GHSA-288j-mhpj-gmmr"],"modified":"2026-11-25T05:47:47.333076398Z","published":"2026-11-20T19:08:09.617Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77323.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79","CWE-80"]},"references":[{"type":"WEB","url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77323.json"},{"type":"ADVISORY","url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77323"},{"type":"FIX","url":"https://github.com/MapServer/MapServer/commit/3bfd0071f74d55b43301ba57f8c4a1425789e0c4"},{"type":"FIX","url":"https://github.com/MapServer/MapServer/commit/47720e835de4d80a602210461d3b52c9f3d5c34c"},{"type":"FIX","url":"https://github.com/MapServer/MapServer/commit/5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9"},{"type":"FIX","url":"https://github.com/MapServer/MapServer/pull/7573"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mapserver/mapserver","events":[{"introduced":"0"},{"fixed":"d25c31936f3f67911a56560e95ed2c8a7cb8ab4f"},{"fixed":"3bfd0071f74d55b43301ba57f8c4a1425789e0c4"},{"fixed":"47720e835de4d80a602210461d3b52c9f3d5c34c"},{"fixed":"5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"8.6.5"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"3bfd0071f74d55b43301ba57f8c4a1425789e0c4"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"47720e835de4d80a602210461d3b52c9f3d5c34c"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9"}]},{"range":[{"fixed":"d25c31936f3f67911a56560e95ed2c8a7cb8ab4f"}],"source":"REFERENCES_TAG","original_tag":"rel-8-6-5"}]}}],"versions":["rel-8-6-4","rel-8-6-3","rel-8-6-2","rel-8-6-1","rel-8-6-0","rel-8-6-0-rc1","rel-8-6-0-beta2","rel-8-6-0-beta1","rel-6-4-0","rel-6-4-0-rc1","rel-6-4-0-beta2","rel-6-4-0-beta1","rel-4-10-0","rel-4-10-0-rc1","rel-4-10-0-beta3","rel-4-10-0-beta2","rel-4-10-0-beta1","rel-4-8-0-rc2","rel-4-8-0-beta3","rel-4-8-0-beta2","rel-4-8-0-beta1","rel-4-6-0","rel-4-6-0-rc1","rel-4-6-0-beta3","rel-4-6-0-beta2","rel-4-6-0-beta1","rel-4-4-0","rel-4-4-0-beta3","rel-4-4-0-beta2","rel-4-4-0-beta1","rel-4-0-0","styleObj","rel-3-5-0","rel-3-4"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-77323.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}