/

CVE-2026-44179

Severity:

CRITICAL RISK

(9.9)

Code Injection (CWE-95) in XWiki Remote Macros Extension

CVE-2026-44179

Deferred

Vulnerability type

Category:

Code Injection

CWE:

CWE-95

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A code injection vulnerability in XWiki Remote Macros allows executable macro syntax to be introduced through an included page's title or excerpt content. A user who can edit a page, even without script or programming rights, may trigger remote code execution when that page is included by the excerpt-include macro.

A code injection vulnerability in XWiki Remote Macros allows executable macro syntax to be introduced through an included page's title or excerpt content. A user who can edit a page, even without script or programming rights, may trigger remote code execution when that page is included by the excerpt-include macro.

Affected context

The issue affects XWiki Remote Macros deployments using the excerpt-include macro in affected releases. Risk arises when a page editor can control the included page title or excerpt and the macro renders that content as XWiki syntax using the macro's privileges. The vulnerable behavior is present where title escaping and excerpt-content isolation are insufficient.

The issue affects XWiki Remote Macros deployments using the excerpt-include macro in affected releases. Risk arises when a page editor can control the included page title or excerpt and the macro renders that content as XWiki syntax using the macro's privileges. The vulnerable behavior is present where title escaping and excerpt-content isolation are insufficient.

Exploit preconditions

  • Attack surface: XWiki pages using the excerpt-include macro
  • Required access: Permission to edit a page whose title or excerpt can be included
  • Trigger point: Rendering a page that includes the attacker-controlled content
  • Why exploitation is possible: User-controlled text is interpreted as executable XWiki macro syntax and runs with the macro's rights
  • Attack surface: XWiki pages using the excerpt-include macro
  • Required access: Permission to edit a page whose title or excerpt can be included
  • Trigger point: Rendering a page that includes the attacker-controlled content
  • Why exploitation is possible: User-controlled text is interpreted as executable XWiki macro syntax and runs with the macro's rights

Why this happens

The underlying bug is insufficient output encoding and trust-boundary enforcement for user-controlled title and excerpt content. The macro does not reliably escape the included page title, and it renders excerpt content in a way that permits XWiki syntax to be interpreted as executable macros. This maps to CWE-95, Improper Neutralization of Directives in Dynamically Evaluated Code, because data supplied by a page editor can become executable rendering logic.

The underlying bug is insufficient output encoding and trust-boundary enforcement for user-controlled title and excerpt content. The macro does not reliably escape the included page title, and it renders excerpt content in a way that permits XWiki syntax to be interpreted as executable macros. This maps to CWE-95, Improper Neutralization of Directives in Dynamically Evaluated Code, because data supplied by a page editor can become executable rendering logic.

Potential impact

  • An attacker may execute code with the privileges available to the XWiki runtime
  • Confidentiality of wiki content and connected services could be compromised
  • Wiki data and configuration could be modified or deleted
  • The availability of the XWiki installation could be disrupted
  • Additional users, applications, or infrastructure could be affected through lateral activity
  • An attacker may execute code with the privileges available to the XWiki runtime
  • Confidentiality of wiki content and connected services could be compromised
  • Wiki data and configuration could be modified or deleted
  • The availability of the XWiki installation could be disrupted
  • Additional users, applications, or infrastructure could be affected through lateral activity

General mitigation guidance

Mitigation generally focuses on preventing user-controlled content from being

interpreted as executable rendering logic.

Common defensive patterns include:

  • Apply the vendor-supported remediation for the affected macro implementation
  • Escape or contextually encode page titles before inserting them into rendered syntax
  • Treat excerpts and other page-authored content as data rather than executable macros
  • Use allowlisted, isolated rendering modes for content that must support limited formatting
  • Reduce macro and runtime privileges according to least-privilege principles
  • Restrict who can edit pages consumed by privileged or widely reused macros
  • Add validation and security tests covering titles, excerpts, and nested macro rendering

Mitigation generally focuses on preventing user-controlled content from being

interpreted as executable rendering logic.

Common defensive patterns include:

  • Apply the vendor-supported remediation for the affected macro implementation
  • Escape or contextually encode page titles before inserting them into rendered syntax
  • Treat excerpts and other page-authored content as data rather than executable macros
  • Use allowlisted, isolated rendering modes for content that must support limited formatting
  • Reduce macro and runtime privileges according to least-privilege principles
  • Restrict who can edit pages consumed by privileged or widely reused macros
  • Add validation and security tests covering titles, excerpts, and nested macro rendering

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis of macro templates for direct interpolation of page titles or excerpts
  • Code review checks for missing contextual escaping before content enters XWiki syntax
  • Tests that submit markup-like content through all fields consumed by rendering macros
  • Audit searches for excerpt-include usage and pages with unexpected macro syntax
  • Monitoring for unusual changes, administrative actions, or server-side command activity after page edits
  • Policy enforcement requiring safe rendering APIs and security review for macros that execute with elevated rights

Automated code review and SAST tools may help identify unsafe interpolation and dynamic evaluation patterns.

Organizations can look for this class of issue through:

  • Static analysis of macro templates for direct interpolation of page titles or excerpts
  • Code review checks for missing contextual escaping before content enters XWiki syntax
  • Tests that submit markup-like content through all fields consumed by rendering macros
  • Audit searches for excerpt-include usage and pages with unexpected macro syntax
  • Monitoring for unusual changes, administrative actions, or server-side command activity after page edits
  • Policy enforcement requiring safe rendering APIs and security review for macros that execute with elevated rights

Automated code review and SAST tools may help identify unsafe interpolation and dynamic evaluation patterns.

Sources

SourceLink
github.comgithub.com/xwikisas/xwiki-pro-macros/commit/151d4fccb62f6ec5f3c972e837869454677ab1ca
github.comgithub.com/xwikisas/xwiki-pro-macros/releases/tag/xwiki-pro-macros-1.14.5
github.comgithub.com/xwikisas/xwiki-pro-macros/security/advisories/GHSA-w56x-9778-rppx

Frequently asked

questions

Any user able to edit relevant page content may be able to exploit it; script or

programming rights are not necessarily required. The page must later be

rendered through an affected excerpt-include macro.

It can be, when an attacker has an account or exposed workflow that permits

page editing and the affected XWiki instance renders the modified content.

Network reachability alone is not sufficient without the required content-editing

capability.

Use the vendor-supported remediation and ensure that titles and excerpts are

treated as inert data through contextual escaping and restricted rendering.

Least-privilege execution should provide an additional containment layer.

Keep user-authored content separate from executable syntax, apply context-aware

encoding, review privileged macros for dynamic evaluation, and test all

user-controlled fields for injection during development and CI security checks.

Any user able to edit relevant page content may be able to exploit it; script or

programming rights are not necessarily required. The page must later be

rendered through an affected excerpt-include macro.

It can be, when an attacker has an account or exposed workflow that permits

page editing and the affected XWiki instance renders the modified content.

Network reachability alone is not sufficient without the required content-editing

capability.

Use the vendor-supported remediation and ensure that titles and excerpts are

treated as inert data through contextual escaping and restricted rendering.

Least-privilege execution should provide an additional containment layer.

Keep user-authored content separate from executable syntax, apply context-aware

encoding, review privileged macros for dynamic evaluation, and test all

user-controlled fields for injection during development and CI security checks.

Find out what's already
exploitable in your codebase.