{"id":"CVE-2023-29201","published":"2023-04-15T14:24:59Z","modified":"2025-02-06T19:58:35Z","title":"org.xwiki.commons:xwiki-commons-xml Cross-site Scripting vulnerability","vendor":"xwiki","product":"xwiki-commons","tier":"tail","description":{"text":"XWiki Commons are technical libraries common to several other top level XWiki projects. The \"restricted\" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1, only escaped `<script>` and `<style>`-tags but neither attributes that can be used to inject scripts nor other dangerous HTML tags like `<iframe>`. As a consequence, any code relying on this \"restricted\" mode for security is vulnerable to JavaScript injection (\"cross-site scripting\"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.6 RC1 with the introduction of a filter with allowed HTML elements and attributes that is enabled in restricted mode. There are no known workarounds apart from upgrading to a version including the fix.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01153,"percentile":0.66936,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m3jr-cvhj-f35j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XCOMMONS-1680","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XCOMMONS-2426","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-9118","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":13.39},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-commons","versions":[">= 4.2-milestone-1, < 14.6-rc-1"]}],"affected":[{"ecosystem":"Maven","package":"org.xwiki.commons:xwiki-commons-xml","vulnerableRanges":[">=4.2-milestone-1, <14.6-rc-1"],"patched":["14.6-rc-1"],"from":["GHSA-m3jr-cvhj-f35j"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-1348","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xwiki-commons-cve-2023-29201","children":[{"from":"CVE-2023-29201","to":"CVE-2023-29528","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/DefaultHTMLCleaner.java"],"commits":["https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2","https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182","https://github.com/xwiki/xwiki-commons/commit/8ff1a9d7e5d7b45b690134a537d53dc05cae04ab"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.67,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2023-29201","to":"CVE-2023-31126","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/SecureHTMLElementSanitizer.java"],"commits":["https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2","https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182","https://github.com/xwiki/xwiki-commons/commit/0b8e9c45b7e7457043938f35265b2aa5adc76a68"],"basis":"rarely changed file"}]},{"from":"CVE-2023-29201","to":"CVE-2023-36471","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/HTMLDefinitions.java"],"commits":["https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2","https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182","https://github.com/xwiki/xwiki-commons/commit/99484d48e899a68a1b6e33d457825b776c6fe8c3"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-24898","published":"2022-04-28","fixed":"13.8-rc-1","kev":false},{"cve":"CVE-2023-29201","published":"2023-04-15","fixed":"14.6-rc-1","kev":false},{"cve":"CVE-2023-26055","published":"2023-03-02","fixed":"14.7-rc-1","kev":false,"link":{"from":"CVE-2023-26055","to":"CVE-2023-29201","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.commons:xwiki-commons-xml","fromFixed":"14.4.4","toFixed":"14.6-rc-1","daysApart":44}]}},{"cve":"CVE-2023-29528","published":"2023-04-20","fixed":"14.10","kev":false},{"cve":"CVE-2023-31126","published":"2023-05-09","fixed":"14.10.4","kev":false}],"package":"Maven:org.xwiki.commons:xwiki-commons-xml"}}