GHSA-859x-p6jp-rc2w
MEDIUMGHSA-859x-p6jp-rc2w is a medium-severity (CVSS 5.4) CWE-863 vulnerability in org.xwiki.platform:xwiki-platform-rendering-macro-context. 2 public exploit references exist, so weaponization risk is real. O3 Security confirms whether GHSA-859x-p6jp-rc2w is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
xwiki contains Incorrect Authorization
Blast Radius
org.xwiki.platform:xwiki-platform-rendering-macro-context☕org.xwiki.platform:xwiki-platform-rendering-macro-context☕org.xwiki.platform:xwiki-platform-rendering-macro-contextReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
It's possible to execute a script with the right of another user (provided the target user does not have programming right).
For example, the following:
{{context document="xwiki:XWiki.userwithscriptright" transformationContext="document"}}{{velocity}}Hello from Velocity!{{/velocity}}{{/context}}
written by a user not having script right (for example in the user's profile) should produce an error (the user is not allowed to write scripts). However, because of the vulnerability, if the author of the document "xwiki:XWiki.userwithscriptright" has script right (but not programming right) the script will be executed with as if it was written by the target user.
Patches
The problem has been patched in XWiki 14.8RC1, 14.4.5 and 13.10.10.
Workarounds
There's no workaround for this issue.
References
https://jira.xwiki.org/browse/XWIKI-19856
For more information
If you have any questions or comments about this advisory:
- Open an issue in JIRA
- Email us at security ML
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.xwiki.platform:xwiki-platform-rendering-macro-context | ≥ 3.0-milestone-1&&< 13.10.10 | 13.10.10 |
| ☕Maven | org.xwiki.platform:xwiki-platform-rendering-macro-context | ≥ 14.0-rc-1&&< 14.4.5 | 14.4.5 |
| ☕Maven | org.xwiki.platform:xwiki-platform-rendering-macro-context | ≥ 14.5&&< 14.8-rc-1 | 14.8-rc-1 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.xwiki.platform:xwiki-platform-rendering-macro-context. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update org.xwiki.platform:xwiki-platform-rendering-macro-context to 13.10.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-859x-p6jp-rc2w is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-859x-p6jp-rc2w is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-859x-p6jp-rc2w. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-859x-p6jp-rc2w in your dependencies?
O3 detects GHSA-859x-p6jp-rc2w across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.