# CVE-2025-66474: XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 3.06% (percentile 88, 2026-11-28)
- **CWE:** CWE-95
- **Aliases:** GHSA-9xc6-c2rm-f27p
- **Published:** 2025-12-10T15:47:12.000Z
- **Modified:** 2026-09-25T23:10:00.463Z

## Who should check

- Projects that depend on Maven package org.xwiki.rendering:xwiki-rendering-xml (\< 16.10.10)
- Anyone running xwiki-rendering \< 16.10.10; \>= 17.0.0-rc-1, \< 17.4.3; \>= 17.5.0-rc-1, \< 17.6.0-rc-1

## 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). Versions 16.10.9 and below, 17.0.0-rc-1 through 17.4.2 and 17.5.0-rc-1 through 17.5.0 have insufficient protection against {{/html}} injection, which attackers can exploit through RCE. Any user who can edit their own profile or any other document can execute arbitrary script macros, including Groovy and Python macros, which enable remote code execution as well as unrestricted read and write access to all wiki contents. This issue is fixed in versions 16.10.10, 17.4.3 and 17.6.0-rc-1.

## Affected and fixed versions

- Maven `org.xwiki.rendering:xwiki-rendering-xml`: affected \< 16.10.10; fixed 16.10.10, 17.4.3, 17.6.0-rc-1 (osv)
- xwiki-rendering: \< 16.10.10; \>= 17.0.0-rc-1, \< 17.4.3; \>= 17.5.0-rc-1, \< 17.6.0-rc-1 (cvelist)

## Mitigation

- Upgrade org.xwiki.rendering:xwiki-rendering-xml to one of 16.10.10, 17.4.3, 17.6.0-rc-1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-66474. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-66474.md
Affected: org.xwiki.rendering:xwiki-rendering-xml < 16.10.10
Fixed in: 16.10.10, 17.4.3, 17.6.0-rc-1

Steps:
1. Search this machine and project for org.xwiki.rendering:xwiki-rendering-xml (Maven), xwiki-rendering: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-66474 being exploited?

There is no confirmed exploitation: CVE-2025-66474 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.06% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-66474?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2025-66474?

org.xwiki.rendering:xwiki-rendering-xml \< 16.10.10.

### Is there a fix for CVE-2025-66474?

Yes. Fixed in 16.10.10, 17.4.3, 17.6.0-rc-1. Upgrade org.xwiki.rendering:xwiki-rendering-xml to one of 16.10.10, 17.4.3, 17.6.0-rc-1 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-66474?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-9xc6-c2rm-f27p>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-66474>
- patch: <https://github.com/xwiki/xwiki-platform/commit/12b780ccd5bca5fc8f74f46648d7e02fa04fbc11>
- patch: <https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49>
- patch: <https://jira.xwiki.org/browse/XWIKI-23378>
- exploit: <https://jira.xwiki.org/browse/XRENDERING-693>
- exploit: <https://jira.xwiki.org/browse/XRENDERING-792>
- exploit: <https://jira.xwiki.org/browse/XRENDERING-793>
- other: <https://github.com/xwiki/xwiki-rendering>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-66474>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9xc6-c2rm-f27p> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-66474> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-66474>
