GHSA-m9x4-w7p9-mxhx

Suggest an improvement
Source
https://github.com/advisories/GHSA-m9x4-w7p9-mxhx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-m9x4-w7p9-mxhx/GHSA-m9x4-w7p9-mxhx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m9x4-w7p9-mxhx
Aliases
Related
Published
2025-08-05T15:32:56Z
Modified
2025-08-06T14:31:07Z
Severity
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
XWiki allows Reflected XSS in two templates
Details

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=<img src=1 onerror=alert(document.domain)> 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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "nvd_published_at": "2025-08-06T00:15:29Z",
    "github_reviewed_at": "2025-08-05T15:32:56Z",
    "github_reviewed": true,
    "severity": "MODERATE"
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-web-templates

Package

Name
org.xwiki.platform:xwiki-platform-web-templates
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-web-templates

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2-milestone-3
Fixed
16.4.8

Maven / org.xwiki.platform:xwiki-platform-web-templates

Package

Name
org.xwiki.platform:xwiki-platform-web-templates
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-web-templates

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.10.6

Maven / org.xwiki.platform:xwiki-platform-web-templates

Package

Name
org.xwiki.platform:xwiki-platform-web-templates
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-web-templates

Affected ranges

Type
ECOSYSTEM
Events
Introduced
17.0.0-rc-1
Fixed
17.3.0-rc-1