# CVE-2026-77323: MapServer Reflected XSS via unescaped offset/limit query params injected into <script> in OGC API Features HTML output

Status: published. Published: 2026-11-20. Updated: 2026-11-25.

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.

## Remediation

- 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-gmmr) — https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr

## Affected products and versions

- MapServer / MapServer: < 8.6.5 (affected). Source: CNA: GitHub_M
-  / OGCAPI Features support in MapServer (OGCAPI Features support in MapServer): <= 8.6.4 (affected, GitHub advisory range). Source: GitHub GHSA-288j-mhpj-gmmr

## Severity and prioritization

- CVSS 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; source: CNA: GitHub_M

- CVSS 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; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.77% as of 2026-11-24; percentile 56.24%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-79, CWE-80

## 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-gmmr (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/MapServer/MapServer/pull/7573 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/MapServer/MapServer/commit/3bfd0071f74d55b43301ba57f8c4a1425789e0c4 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/MapServer/MapServer/commit/47720e835de4d80a602210461d3b52c9f3d5c34c (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/MapServer/MapServer/commit/5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/MapServer/MapServer/commit/3bfd0071f74d55b43301ba57f8c4a1425789e0c4 (security-advisories@github.com)

- https://github.com/MapServer/MapServer/commit/47720e835de4d80a602210461d3b52c9f3d5c34c (security-advisories@github.com)

- https://github.com/MapServer/MapServer/commit/5d2a60c1ffd17839879b7b32ec26f689c9dbf1e9 (security-advisories@github.com)

- https://github.com/MapServer/MapServer/pull/7573 (security-advisories@github.com)

- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5 (security-advisories@github.com)

- https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr (security-advisories@github.com)

- https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr (GitHub Security Advisories; advisory)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-77323; retrieved 2026-11-25; source updated 2026-11-25

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-77323; retrieved 2026-11-25; source updated 2026-11-25

- GitHub Security Advisories: https://github.com/MapServer/MapServer/security/advisories/GHSA-288j-mhpj-gmmr; retrieved 2026-11-22; source updated 2026-08-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-77323; retrieved 2026-11-25; source updated Not reported

Revision: 82d937d8e7e82a477076f34dc662371eff512b33cc084e5356f886406edf5cad

Canonical: https://y2.dev/cve/CVE-2026-77323

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.