CVE-2022-36098: XWiki Mentions UI - Stored XSS
- Cve: CVE-2022-36098
- Name: XWiki Mentions UI - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary scripts in the context of the affected wiki page, leading to potential session hijacking or defacement.
- Remediation: Update to version 13.10.6 or 14.4, or edit the Macro code field of the XWiki.WikiMacroClass XObject as a workaround.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victims must visit the affected page
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.71607
- Epss percentile: 0.9943
- Assignee: [email protected]
- Published at: 2022-09-08T21:15:08Z
- Age in days: 1538
- Modified at: 2026-06-17T04:52:54Z
- Patch available: yes
- Public exploits total: 2
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-36098
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c5v8-2q4r-5w9v | nvd | 2022-09-08 |
| https://jira.xwiki.org/browse/XWIKI-19752 | nvd | 2022-09-08 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/xwiki/xwiki-platform/commit/4032dc896857597efd169966dc9e2752a9fdd459#diff-4fe22885f772e47d3561a05348f73921669ec12d4413b220383b73c7ae484bc4R608-R610 | Patch, Third Party Advisory |
| https://github.com/xwiki/xwiki-platform/commit/4f290d87a8355e967378a1ed6aee23a06ba162eb | Patch, Third Party Advisory |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c5v8-2q4r-5w9v | Exploit, Patch, Third Party Advisory |
| https://jira.xwiki.org/browse/XWIKI-19752 | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| xwiki:xwiki | >= 14.0, < 14.4; >= 12.5, < 13.10.6 | no | nvd | /v1/products/xwiki/xwiki |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| xwiki/xwiki-platform | commit, fix, package, security_advisory | yes | /v1/repositories/xwiki/xwiki-platform |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2022-09-08
- Remote: yes
- Authentication required: yes
- Exposed hosts: 142594
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports