BreachSpiderVerified, not vibes

CVE-2025-49581 in Xwiki

High 8.8 Fix available

XWiki is a generic wiki platform. Any user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation. The main problem is that if a wiki macro parameter allows wiki synta...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
CVSS v48.7
EPSS2.2%
EPSS percentile83th
FixAvailable

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Xwiki Xwiki 17.0.0 ≥ 11.10.11, < 12.0 ≥ 12.6.3, < 12.7 ≥ 12.8, < 16.4.7 ≥ 16.5.0, < 16.10.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

XWiki is a generic wiki platform. Any user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation. The main problem is that if a wiki macro parameter allows wiki syntax, its default value is executed with the rights of the author of the document where it is used. This can be exploited by overriding a macro like the children macro that is used in a page that has programming right like the page XWiki.ChildrenMacro and thus allows arbitrary script macros. This vulnerability has been patched in XWiki 16.4.7, 16.10.3 and 17.0.0 by executing wiki parameters with the rights of the wiki macro's author when the parameter's value is the default value.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-49581
BreachSpider IDBS-2025-GLOBAL-246701-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2025-06-13
Last modified2025-09-03
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

CWE-250: CWE-250

CWE-270: CWE-270

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94, CWE-270

CAPEC-470 Expanding Control over the Operating System from the Database via CWE-250

CAPEC-17 Using Malicious Files via CWE-270

CAPEC-30 Hijacking a Privileged Thread of Execution via CWE-270

CAPEC-69 Target Programs with Elevated Privileges via CWE-250

Show all 8

CAPEC-77 Manipulating User-Controlled Variables via CWE-94

CAPEC-104 Cross Zone Scripting via CWE-250

CAPEC-242 Code Injection via CWE-94

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2025-49581 affects XWiki, allowing users with edit rights to execute arbitrary code through wiki macros, leading to full access to the XWiki installation.

An attacker with edit rights on a page can define a wiki macro with parameters that allow wiki syntax. The default value of these parameters is executed with the rights of the document author, potentially leading to code execution.

Questions

What is CVE-2025-49581?

CVE-2025-49581 affects XWiki, allowing users with edit rights to execute arbitrary code through wiki macros, leading to full access to the XWiki installation.

What is the CVSS score for CVE-2025-49581?

CVE-2025-49581 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.2%.

Is CVE-2025-49581 actively exploited?

No confirmed active exploitation of CVE-2025-49581 as of 2026-05-30.

How do I remediate CVE-2025-49581?

Priority: IMMEDIATE. Advisory: https://jira.xwiki.org/browse/XWIKI-22760 PSIRT: [email protected]

What systems are affected by CVE-2025-49581?

CVE-2025-49581 affects Xwiki Xwiki.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Xwiki","product":"Xwiki","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-09-03.