{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-54355","id":"CVE-2026-54355","title":"MapServer: Reflected XSS in OpenLayers HTML Output via `HTTP_X_FORWARDED_HOST`","description":"MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.4, MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host value received as HTTP_X_FORWARDED_HOST through msBuildOnlineResource(), processLine(), and the [mapserv_onlineresource] substitution in src/maputil.c and src/maptempla","descriptionLong":"MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.4, MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host value received as HTTP_X_FORWARDED_HOST through msBuildOnlineResource(), processLine(), and the [mapserv_onlineresource] substitution in src/maputil.c and src/maptemplate.c without escaping it for a single-quoted JavaScript string. When the deployment trusts the forwarded header and does not configure a fixed ows_onlineresource or MS_ONLINERESOURCE value, embedded single quotes can escape the generated URL string. An unauthenticated attacker can craft a URL that executes arbitrary JavaScript in the MapServer site origin when opened by a victim, enabling access to sessions or tokens, same-origin data and requests, and actions as the victim. This issue is fixed in version 8.6.4.","published":"2026-09-17T20:24:32.522Z","updated":"2026-10-28T10:52:08.426458448Z","reserved":"2026-06-12T19:23:22.318Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/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","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","rating":"unrated","source":"OSV"}],"rating":"medium","products":["MapServer"],"affectedProducts":[{"vendor":"MapServer","product":"MapServer","defaultStatus":null,"versions":[{"version":">= 6.0, < 8.6.4","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-79"],"aliases":["GHSA-xqj6-vjqr-33vv"],"references":[{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-xqj6-vjqr-33vv","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/MapServer/MapServer/pull/7517","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/MapServer/MapServer/pull/7518","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/MapServer/MapServer/commit/edc1033c7963fcffd160d85cf430f49aaf4a1374","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/MapServer/MapServer/commit/ff17ef190caaeaa9002ac3d1c7969ec5315c345e","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4","tags":["x_refsource_MISC","web"]},{"url":"https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54355.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54355","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.005,"epssPercentile":0.43602,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-54355","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54355","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-54355","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54355","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}