CVE-2022-36098
Published: 08 September 2022
Summary
CVE-2022-36098 is a high-severity Cross-site Scripting (CWE-79) vulnerability in Xwiki Xwiki. Its CVSS base score is 8.9 (High).
Operationally, ranked in the top 2.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
XWiki Platform Mentions UI, a component of the generic wiki platform XWiki, contains a stored cross-site scripting vulnerability (CWE-79) in versions starting with 12.5-rc-1 and prior to 13.10.6 and 14.4. Malicious JavaScript or Groovy code can be persisted in mention, macro anchor, or reference fields and is later executed in the context of any user who views the affected page.
An authenticated attacker with low privileges can insert the scripts through normal mention functionality; because the payload executes for other visitors, the attacker can achieve confidentiality, integrity, and limited availability impacts across the application, consistent with the CVSS 8.9 rating that reflects network attack vector, required user interaction, and changed scope.
The GitHub Security Advisory and linked commits describe the official fixes released in XWiki 13.10.6 and 14.4. As a workaround, administrators can edit the Macro code field of the XWiki.WikiMacroClass XObject inside XWiki.Mentions.MentionsMacro to neutralize script execution.
The EPSS score remains at 0.4365 with no material increase after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-6775
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.