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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-79",
"CWE-80"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77323.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "8.6.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "3bfd0071f74d55b43301ba57f8c4a1425789e0c4"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "47720e835de4d80a602210461d3b52c9f3d5c34c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "rel-8-6-5",
"range": [
{
"fixed": "d25c31936f3f67911a56560e95ed2c8a7cb8ab4f"
}
],
"source": "REFERENCES_TAG"
}
]
}