{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-36098","id":"CVE-2022-36098","title":"XWiki Platform Mentions UI vulnerable to Cross-site Scripting","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","descriptionLong":"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.","published":"2022-09-08T20:50:11.000Z","updated":"2026-10-28T02:30:24.157172679Z","reserved":"2022-07-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"high","products":["xwiki-platform"],"affectedProducts":[{"vendor":"xwiki","product":"xwiki-platform","defaultStatus":null,"versions":[{"status":"affected","version":">= 12.5-rc-1, < 13.10.6"},{"status":"affected","version":">= 14.0, < 14.4"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-mentions-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-mentions-ui","ranges":[">=12.5-rc-1 <13.10.6",">=14.0 <14.4"],"fixed":["13.10.6","14.4"],"advisory":"GHSA-c5v8-2q4r-5w9v"}],"cwes":["CWE-79"],"aliases":["GHSA-c5v8-2q4r-5w9v"],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c5v8-2q4r-5w9v","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/4032dc896857597efd169966dc9e2752a9fdd459#diff-4fe22885f772e47d3561a05348f73921669ec12d4413b220383b73c7ae484bc4R608-R610","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/4f290d87a8355e967378a1ed6aee23a06ba162eb","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://jira.xwiki.org/browse/XWIKI-19752","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36098.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36098","tags":["advisory"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.71607,"epssPercentile":0.99429,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-36098","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36098","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-36098","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c5v8-2q4r-5w9v","ok":true,"note":"GHSA-c5v8-2q4r-5w9v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-36098","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 72% with CVSS 8.9"],"attention":null}