XWiki Platform CVE-2026-48047
MEDIUMLifecycle Timeline
2DescriptionCVE.org
Impact
A potential path traversal vulnerability allow an attacker who manages to get a malicious WebJar extension installed on the wiki to write arbitrary files. While the consequences could be severe like overriding configuration files and setting the superadmin password, the attack first requires that the attacker already has admin access to at least a subwiki to be able to install a malicious extension. Further, the attacker needs to publish a malicious extension in an extension repository that is configured in the instance.
Patches
This vulnerability has been patched in XWiki 16.10.17, 17.4.9, 17.10.3, and 18.0.0RC1.
Workarounds
XWiki is not aware of any workarounds except for being careful whom developers grant script and admin rights to.
Resources
- https://jira.xwiki.org/browse/XWIKI-23902
- https://github.com/xwiki/xwiki-platform/commit/9f747fcd3200259a1de51957d3f5f6acc8e3816c
AnalysisAI
Path traversal in XWiki Platform's WebJars API enables a subwiki admin who can publish and install a malicious WebJar extension to write arbitrary files anywhere on the server filesystem. The affected Maven component xwiki-platform-webjars-api fails to validate that JAR entry paths extracted during extension installation remain within the intended export directory, allowing overwrite of configuration files or potential superadmin credential manipulation. No public exploit is identified and no CISA KEV listing exists; vendor-released patches are available across three version branches.
Technical ContextAI
The vulnerability (CWE-24: Path Traversal) resides in FilesystemResourceReferenceCopier.java within the Maven artifact pkg:maven/org.xwiki.platform:xwiki-platform-webjars-api. The copyResourceFromJAR method previously constructed a target File object by concatenating user-controlled JAR entry names with a base export directory path, without verifying the resolved canonical path remained within that directory. A maliciously crafted WebJar could embed entries using ../ sequences to escape the export directory boundary. The fix - commit 9f747fcd3200259a1de51957d3f5f6acc8e3816c - adds explicit canonical path containment checks: both the target location and the export directory are resolved via getCanonicalPath(), and a startsWith() guard ensures no write proceeds outside the export directory. CSS resource resolution in processCSSfile received an analogous prefix-boundary check.
RemediationAI
Upgrade XWiki Platform to a patched release: 16.10.17 for the 16.x LTS branch, 17.4.9 for the 17.4.x branch, 17.10.3 for the 17.10.x branch, or 18.0.0RC1 and later. The upstream code fix is available at https://github.com/xwiki/xwiki-platform/commit/9f747fcd3200259a1de51957d3f5f6acc8e3816c. The vendor explicitly states no technical workarounds are known beyond carefully auditing who is granted script and admin rights. As a compensating control for instances that cannot immediately upgrade, administrators should audit and restrict which external extension repositories are configured in the instance - removing untrusted or unnecessary repositories reduces the pathway for a malicious extension to be published and installed, though this does not eliminate the vulnerability and limits legitimate extension availability. Additionally, reviewing and tightening subwiki admin role assignments to only fully trusted internal users is the most effective risk reduction short of patching.
Atlassian has been made aware of an issue reported by a handful of customers where external attackers may have exploited
The HipChat for JIRA plugin before 6.30.0 for Atlassian JIRA allows remote authenticated users to execute arbitrary Java
Atlassian Confluence before 5.8.17 allows remote authenticated users to read configuration files via the decoratorName p
Atlassian JIRA before 5.0.1; Confluence before 3.5.16, 4.0 before 4.0.7, and 4.1 before 4.1.10; FishEye and Crucible bef
Directory traversal vulnerability in the Issue Collector plugin in Atlassian JIRA before 6.0.4 allows remote attackers t
All versions of Confluence Data Center and Server are affected by this unexploited vulnerability. Rated critical severit
In affected versions of Confluence Server and Data Center, an OGNL injection vulnerability exists that would allow an un
Atlassian Crowd and Crowd Data Center had the pdkinstall development plugin incorrectly enabled in release builds. Rated
The IconUriServlet of the Atlassian OAuth Plugin from version 1.3.0 before version 1.9.12 and from version 2.0.0 before
This High severity RCE (Remote Code Execution) vulnerability was introduced in version 5.2 of Confluence Data Center and
Multiple API endpoints in Atlassian Bitbucket Server and Data Center 7.0.0 before version 7.6.17, from version 7.7.0 bef
The JIRA Workflow Designer Plugin in Atlassian JIRA Server before 6.3.0 improperly uses an XML parser and deserializer,
Same weakness CWE-24 – Path Traversal: '../filedir'
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-vgwr-23fq-pr7g