ZeroHour

CVE-2026-89260

niche

Unauthenticated XXE file disclosure in MoguBlog WeChat callback handler

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

MoguBlog through version 6.2 is vulnerable to XML external entity (XXE) injection (CWE-611) in its WeChat callback handler at POST /wechat/wechatCheck. An unauthenticated attacker can send an XML body containing a DOCTYPE declaration with external parameter entities; the WechatRestApi.index() method passes the raw request body to SignUtil.xmlMap(), which parses it with a dom4j SAXReader that has no DTD or external-entity restrictions. Because resolved entity content is reflected in error responses, an attacker can read arbitrary local files from the server (e.g., application configuration or credentials) and can also force the server to issue outbound HTTP requests (SSRF), potentially probing internal networks. Any MoguBlog deployment up to and including 6.2 that exposes the WeChat callback endpoint is affected. There are no reports of exploitation in the wild and no public proof-of-concept is known.

What to do: Upgrade MoguBlog to a release newer than 6.2 once a patched version is published, since no fixed version is specified in current advisories. Until then, restrict access to /wechat/wechatCheck to trusted WeChat platform source IPs or place a WAF rule in front of it that rejects XML bodies containing DOCTYPE declarations, and confirm the underlying dom4j SAXReader is configured to disallow DTDs and external entities. Administrators should also review web and proxy logs for unexpected outbound HTTP requests or error responses echoing local file contents, which would indicate probing or exploitation.

Affected
MoguBlog (open-source project) MoguBlogall versions through 6.2 (inclusive); no fixed version specified in available data
Estimated exposure
nicheunknown exact count; likely at most hundreds to a few thousand self-hosted deployments, and only those exposing the /wechat/wechatCheck callback endpoint are… — No published install counts, marketplace statistics, or internet-exposure scans exist for MoguBlog, so the estimate relies on its deployment pattern as a niche, self-hosted open-source blog platform typically run by individual bloggers,…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

MoguBlog through 6.2 contains an XML external entity injection vulnerability in the WeChat callback handler at POST /wechat/wechatCheck. The WechatRestApi.index() method passes the raw request body to SignUtil.xmlToMap(), which uses an unhardened dom4j SAXReader without DTD or external-entity restrictions. Unauthenticated remote attackers can submit DOCTYPE declarations with external parameter entities to read arbitrary local files or trigger outbound HTTP requests, with resolved entities reflected in error responses.

Weakness
CWE-611
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/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

In the news

No ingested article mentions this CVE yet.