CVE-2026-77325 (GCVE-0-2026-77325)
Vulnerability from cvelistv5 – Published: 2026-11-20 19:10 – Updated: 2026-11-20 19:10
VLAI
EPSS
VEX
Title
MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header
Summary
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.
Severity
6.1 (Medium)
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
6 references
| URL | Tags |
|---|---|
| https://github.com/MapServer/MapServer/security/a… | x_refsource_CONFIRM |
| https://github.com/MapServer/MapServer/pull/7544 | x_refsource_MISC |
| https://github.com/MapServer/MapServer/pull/7554 | x_refsource_MISC |
| https://github.com/MapServer/MapServer/commit/2e4… | x_refsource_MISC |
| https://github.com/MapServer/MapServer/commit/57a… | x_refsource_MISC |
| https://github.com/MapServer/MapServer/releases/t… | x_refsource_MISC |
{
"containers": {
"cna": {
"affected": [
{
"product": "MapServer",
"vendor": "MapServer",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.0, \u003c 8.6.5"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.5, MapServer\u0027s 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\u0027s browser under the MapServer origin when the victim loads the crafted output. This issue is fixed in version 8.6.5."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79: Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T19:10:16.273Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x"
},
{
"name": "https://github.com/MapServer/MapServer/pull/7544",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/MapServer/MapServer/pull/7544"
},
{
"name": "https://github.com/MapServer/MapServer/pull/7554",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/MapServer/MapServer/pull/7554"
},
{
"name": "https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432"
},
{
"name": "https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426"
},
{
"name": "https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"
}
],
"source": {
"advisory": "GHSA-52rr-p4x5-2x6x",
"discovery": "UNKNOWN"
},
"title": "MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-77325",
"datePublished": "2026-11-20T19:10:16.273Z",
"dateReserved": "2026-08-20T19:24:11.617Z",
"dateUpdated": "2026-11-20T19:10:16.273Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-77325",
"date": "2026-11-22",
"epss": "0.00475",
"percentile": "0.41889"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"product": "MapServer",
"vendor": "MapServer",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.0, \u003c 8.6.5"
}
]
}
],
"source": "security-advisories@github.com"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.5, MapServer\u0027s 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\u0027s browser under the MapServer origin when the victim loads the crafted output. This issue is fixed in version 8.6.5."
}
],
"id": "CVE-2026-77325",
"lastModified": "2026-11-20T19:18:53.963",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7,
"source": "security-advisories@github.com",
"type": "Secondary"
}
]
},
"published": "2026-11-20T19:18:53.963",
"references": [
{
"source": "security-advisories@github.com",
"url": "https://github.com/MapServer/MapServer/commit/2e4229ff66f6eac1b270755a0ce0ce8debee4432"
},
{
"source": "security-advisories@github.com",
"url": "https://github.com/MapServer/MapServer/commit/57a5d592a4270137c20f33459d59d370b5374426"
},
{
"source": "security-advisories@github.com",
"url": "https://github.com/MapServer/MapServer/pull/7544"
},
{
"source": "security-advisories@github.com",
"url": "https://github.com/MapServer/MapServer/pull/7554"
},
{
"source": "security-advisories@github.com",
"url": "https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"
},
{
"source": "security-advisories@github.com",
"url": "https://github.com/MapServer/MapServer/security/advisories/GHSA-52rr-p4x5-2x6x"
}
],
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Received",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
],
"source": "security-advisories@github.com",
"type": "Primary"
}
]
}
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…