{"id":"CVE-2021-43841","aliases":["EUVD-2022-0941","GHSA-9jq9-c2cv-pcrj"],"status":"published","title":"XSS by SVG upload in xwiki-platform","description":"XWiki is a generic wiki platform offering runtime services for applications built on top of it. When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0087,"percentile":0.59056,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-02-04T22:30:14Z","modified":"2026-10-24T14:21:21Z","fixes":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","fixed_in":["12.10.6","13.3RC1"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","fixed_in":["13.3RC1","12.10.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.10.6"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0"},{"last_affected":"13.2"},{"fixed":"13.3RC1"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0"},{"last_affected":"13.2"},{"fixed":"13.3RC1"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.10.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.10.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0"},{"fixed":"13.3RC1"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0"},{"fixed":"13.3RC1"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.10.6"}]}]}],"products":[{"vendor":"xwiki","product":"xwiki"},{"vendor":"xwiki","product":"xwiki-platform"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9jq9-c2cv-pcrj","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/5853d492b3a274db0d94d560e2a5ea988a271c62","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://jira.xwiki.org/browse/XWIKI-18368","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Vendor Advisory","fix","web"]},{"url":"https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43841","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9jq9-c2cv-pcrj"},{"url":"https://github.com/xwiki/xwiki-platform","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-43841","title":"XSS by SVG upload in xwiki-platform","description":"XWiki is a generic wiki platform offering runtime services for applications built on top of it. When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.","status":"published","published":"2022-02-04T22:30:14Z","modified":"2025-04-22T18:27:22.922Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:32:56.689433Z"}],"euvd":[{"id":"EUVD-2022-0941","description":"XWiki is a generic wiki platform offering runtime services for applications built on top of it. When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.","status":"published","published":"2022-02-04T22:30:14Z","modified":"2025-04-22T18:27:22Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:52:15.026784Z"}],"ghsa":[{"id":"GHSA-9jq9-c2cv-pcrj","title":"Cross-site Scripting by SVG upload in xwiki-platform","description":"### Impact\nWhen using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. \n\n### Patches\nThis problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser.\n\n### Workarounds\nThis issue can be fixed without the patch by setting properly the configuration to download or display files, see: https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-18368\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira](http://jira.xwiki.org)\n* Email us at [security ML](mailto:security@xwiki.org)\n","status":"published","published":"2022-02-10T22:42:48Z","modified":"2023-09-26T12:00:41Z","cvss":[{"version":"3.1","score":4.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:06.234371Z"}],"nvd":[{"id":"CVE-2021-43841","description":"XWiki is a generic wiki platform offering runtime services for applications built on top of it. When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.","status":"published","published":"2022-02-04T23:15:11.957Z","modified":"2026-06-17T04:11:33.017Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:04.178977Z"}],"osv":[{"id":"CVE-2021-43841","description":"XWiki is a generic wiki platform offering runtime services for applications built on top of it. When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.","status":"published","published":"2022-02-04T23:15:11.957Z","modified":"2026-10-24T14:21:21.181925058Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:21.877444Z"},{"id":"GHSA-9jq9-c2cv-pcrj","title":"Cross-site Scripting by SVG upload in xwiki-platform","description":"### Impact\nWhen using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file. \n\n### Patches\nThis problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser.\n\n### Workarounds\nThis issue can be fixed without the patch by setting properly the configuration to download or display files, see: https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-18368\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira](http://jira.xwiki.org)\n* Email us at [security ML](mailto:security@xwiki.org)\n","status":"published","published":"2022-02-10T22:42:48Z","modified":"2026-07-08T06:27:32.259940237Z","cvss":[{"version":"3.1","score":4.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:43.875515Z"}]}}
