# CVE-2022-36098: XWiki Platform Mentions UI vulnerable to Cross-site Scripting

- Severity: High 8.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- 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): 72.3%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-09-08T20:50:11.000Z
- Modified: 2026-06-17T04:52:54.967Z
- Also known as: GHSA-c5v8-2q4r-5w9v
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

XWiki Platform Mentions UI is a user interface for mentioning users in wiki content for XWiki Platform, a generic wiki platform. Starting in version 12.5-rc-1 and prior to versions 13.10.6 and 14.4, it's possible to store Javascript or groovy scripts in a mention, macro anchor, or reference field. The stored code is executed by anyone visiting the page with the mention. This issue has been patched on XWiki 14.4 and 13.10.6. As a workaround, one may update `XWiki.Mentions.MentionsMacro` and edit the `Macro code` field of the `XWiki.WikiMacroClass` XObject.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 12.5-rc-1, < 13.10.6; >= 14.0, < 14.4
- org.xwiki.platform:xwiki-platform-mentions-ui (Maven): from 12.5-rc-1 before 13.10.6; from 14.0 before 14.4
- xwiki xwiki: from 12.5 before 13.10.6; from 14.0 before 14.4

## Every score

- GitHub_M: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c5v8-2q4r-5w9v> (exploit, patch, third-party-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-19752> (exploit, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/4032dc896857597efd169966dc9e2752a9fdd459#diff-4fe22885f772e47d3561a05348f73921669ec12d4413b220383b73c7ae484bc4R608-R610> (patch, third-party-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/4f290d87a8355e967378a1ed6aee23a06ba162eb> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36098> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2022-36098](https://www.cve.org/CVERecord?id=CVE-2022-36098), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-c5v8-2q4r-5w9v](https://github.com/advisories/GHSA-c5v8-2q4r-5w9v), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-36098](https://nvd.nist.gov/vuln/detail/CVE-2022-36098), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36098 · Whole record: https://cve.day/CVE-2022-36098.json · Rebuilt by cve.day 2026-11-25T22:58:14.781Z
