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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2025-12-10T15:47:12.000Z
- Modified: 2026-09-25T23:10:00.463Z
- Also known as: GHSA-9xc6-c2rm-f27p
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-rendering: < 16.10.10; >= 17.0.0-rc-1, < 17.4.3; >= 17.5.0-rc-1, < 17.6.0-rc-1; before 16.10.10; from 17.0.0 before 17.4.3; 17.5.0
- org.xwiki.rendering:xwiki-rendering-xml (Maven): before 16.10.10; from 17.0.0-rc-1 before 17.4.3; from 17.5.0-rc-1 before 17.6.0-rc-1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2025-66474](https://www.cve.org/CVERecord?id=CVE-2025-66474), CVE Terms of Use, modified 2025-12-11
- GitHub Advisory Database: [GHSA-9xc6-c2rm-f27p](https://github.com/advisories/GHSA-9xc6-c2rm-f27p), CC-BY-4.0, modified 2025-12-20
- NVD: [CVE-2025-66474](https://nvd.nist.gov/vuln/detail/CVE-2025-66474), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2025-66474 · Whole record: https://cve.day/CVE-2025-66474.json · Rebuilt by cve.day 2026-11-25T22:59:09.208Z
