Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-77325— MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header

Quick assessment

Affected
MapServer MapServer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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

CVSS 6.1 · Medium

Affected Version Matrix 1

VendorProduct Version RangeStatus
MapServer MapServer >= 6.0, < 8.6.5 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-77325

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
MapServer MapServer >= 6.0, < 8.6.5 -

II. Public POCs for CVE-2026-77325

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-77325

请登录查看更多情报信息。

Other References for CVE-2026-77325 (6)

Same Patch Batch · MapServer · 2026-11-20 · 6 CVEs total

CVE-2026-77326 8.6 HIGH MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
CVE-2026-77324 7.5 HIGH MapServer: WCS POST: NULL-Dereference Denial of Service When `BoundingBox` Omits `crs`
CVE-2026-77327 6.9 MEDIUM MapServer: MySQL JOIN second-order SQL injection in src/mapjoin.c
CVE-2026-77328 6.9 MEDIUM MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c
CVE-2026-77323 5.3 MEDIUM MapServer Reflected XSS via unescaped offset/limit query params injected into <script> in

IV. Related Vulnerabilities