{"affected":[{"product":"MapServer","source":"CNA: GitHub_M","vendor":"MapServer","versions":[{"status":"affected","version":">= 6.0, < 8.6.5"}]},{"ecosystem":"","packageName":"MapServer OpenLayers viewer","product":"MapServer OpenLayers viewer","source":"GitHub GHSA-52rr-p4x5-2x6x","vendor":"","versions":[{"status":"affected","version":">= 6.0","versionType":"GitHub advisory range"}]}],"cveId":"CVE-2026-77325","cwes":["CWE-79"],"description":"MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.5, MapServer's WMS OpenLayers output, selected by FORMAT=application/openlayers or template=openlayers, substitutes a request-derived online-resource value into a single-quoted JavaScript string in src/maptemplate.c. The prior remediation for GHSA-xqj6-vjqr-33vv used msEscapeJSonLikeString() to protect the JavaScript string but did not neutralize angle brackets, so attacker-controlled X-Forwarded-Host or X-Forwarded-Proto values can still terminate the script element at the HTML parser layer. Deployments that expose attacker-controlled PATH_INFO or map= values reaching the same string are also affected. An unauthenticated attacker can cause arbitrary JavaScript to execute in a victim's browser under the MapServer origin when the victim loads the crafted output. This issue is fixed in version 8.6.5.","epss":{"date":"2026-11-23","percentile":0.41873,"score":0.00475},"exploits":[],"kev":null,"metrics":[{"score":6.1,"severity":"medium","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"score":6.1,"severity":"medium","source":"NVD: security-advisories@github.com","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}],"modifiedAt":1795481613881,"publishedAt":1795201816273,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/pull/7544"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/pull/7554"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/pull/7544"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/pull/7554"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x"},{"source":"GitHub Security Advisories","tags":["advisory"],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x"}],"remediation":[],"revision":"17ad006cb3cd0828c6f7b9d98ac1a149758c0f4cb896577cee38c19cd7346e24","sources":[{"modifiedAt":1795481613881,"name":"CNA: GitHub_M","retrievedAt":1795482627114,"url":"https://www.cve.org/CVERecord?id=CVE-2026-77325"},{"modifiedAt":1795202333963,"name":"NVD","retrievedAt":1795220264861,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77325"},{"modifiedAt":1787254301000,"name":"GitHub Security Advisories","retrievedAt":1795389309540,"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795482634980,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-77325"}],"ssvc":{"assessedAt":1795479746475,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header","updatedAt":1795482634980}