GitHub Advisoryadvisory · Maven
GHSA-m9x4-w7p9-mxhx XWiki allows Reflected XSS in two templates
MEDIUM
Official page ↗
- Aliases
- CVE-2025-32430
- Ecosystem
- Maven
- Packages
- org.xwiki.platform:xwiki-platform-web-templates
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- Weaknesses
- CWE-79
- Reviewed
- 2025-08-05
Affected packages
• Maven org.xwiki.platform:xwiki-platform-web-templates: >= 4.2-milestone-3, < 16.4.8 → fixed in 16.4.8
• Maven org.xwiki.platform:xwiki-platform-web-templates: >= 16.5.0-rc-1, < 16.10.6 → fixed in 16.10.6
• Maven org.xwiki.platform:xwiki-platform-web-templates: >= 17.0.0-rc-1, < 17.3.0-rc-1 → fixed in 17.3.0-rc-1
Description
Impact
Reflected XSS vulnerabilities in two templates allow an attacker to execute malicious JavaScript code in the context of the victim's session by getting the victim to visit an attacker-controlled URL. PoC URLs are `/xwiki/bin/view/Main/?xpage=job_status_json&jobId=asdf&translationPrefix=` and `/xwiki/bin/view/Main/?xpage=distribution&extensionId=%3Cimg src=x onerror=alert(document.domain)%3E&extensionVersionConstraint=%3Cimg src=x onerror=alert(document.domain)%3E`. This allows the attacker to perform arbitrary actions using the permissions of the victim.
Patches
The problem has been patched in XWiki 16.4.8, 16.10.6 and 17.3.0RC1 by adding escaping in the affected templates.
Workarounds
The affected templates can be patched manually in the WAR by applying the same changes as in the patch.
Attribution
The vulnerability involving `job_status_json` has been reported as "Unauth Reflected XSS" vulnerability by Aleksey Solovev (Positive Technologies), and the vulnerability involving `distribution` has been reported as "Auth Admin Reflected XSS" vulnerability by Evgeny Kopytin (Positive Technologies). According to our analysis, both vulnerabilities can be exploited against both unauthenticated and authenticated victims (including victims with admin privileges) which is why we publish them together in this advisory.
Related
Alias · CVE (1)
- CVE-2025-32430 XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-m9x4-w7p9-mxhx web
- https://nvd.nist.gov/vuln/detail/CVE-2025-32430 advisory
- https://github.com/xwiki/xwiki-platform/commit/e5926a938cbecc8b1eaa48053d8d370cff107cb0 web
- https://github.com/xwiki/xwiki-platform package
- https://jira.xwiki.org/browse/XWIKI-23096 web