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

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

- **Severity:** HIGH 8.9
- **CVSS:** 8.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.08% (percentile 82, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-c5v8-2q4r-5w9v
- **Published:** 2022-09-08T20:50:11.000Z
- **Modified:** 2026-06-17T04:52:54.967Z

## Who should check

- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-mentions-ui (\>= 12.5-rc-1, \< 13.10.6)
- Anyone running xwiki-platform \>= 12.5-rc-1, \< 13.10.6; \>= 14.0, \< 14.4

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

## Affected and fixed versions

- Maven `org.xwiki.platform:xwiki-platform-mentions-ui`: affected \>= 12.5-rc-1, \< 13.10.6; fixed 13.10.6, 14.4 (osv)
- xwiki-platform: \>= 12.5-rc-1, \< 13.10.6; \>= 14.0, \< 14.4 (cvelist)

## Mitigation

- Upgrade org.xwiki.platform:xwiki-platform-mentions-ui to one of 13.10.6, 14.4 (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-2022-36098. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-36098.md
Affected: org.xwiki.platform:xwiki-platform-mentions-ui >= 12.5-rc-1, < 13.10.6
Fixed in: 13.10.6, 14.4

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-mentions-ui (Maven), xwiki-platform: 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-2022-36098 being exploited?

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

### How serious is CVE-2022-36098?

High: CVSS 8.9 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-36098?

org.xwiki.platform:xwiki-platform-mentions-ui \>= 12.5-rc-1, \< 13.10.6.

### Is there a fix for CVE-2022-36098?

Yes. Fixed in 13.10.6, 14.4. Upgrade org.xwiki.platform:xwiki-platform-mentions-ui to one of 13.10.6, 14.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-36098?

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-platform/security/advisories/GHSA-c5v8-2q4r-5w9v>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-36098>
- patch: <https://github.com/xwiki/xwiki-platform/commit/4032dc896857597efd169966dc9e2752a9fdd459#diff-4fe22885f772e47d3561a05348f73921669ec12d4413b220383b73c7ae484bc4R608-R610>
- patch: <https://github.com/xwiki/xwiki-platform/commit/4f290d87a8355e967378a1ed6aee23a06ba162eb>
- exploit: <https://jira.xwiki.org/browse/XWIKI-19752>
- other: <https://github.com/xwiki/xwiki-platform>

## 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-2022-36098>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c5v8-2q4r-5w9v> (license: <https://creativecommons.org/licenses/by/4.0/>)

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