{"id":"CVE-2021-43841","aliases":["CVE-2021-43841","GHSA-9jq9-c2cv-pcrj"],"related":[],"kind":"vulnerability","state":"published","title":"XSS by SVG upload in xwiki-platform","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki es una plataforma wiki genérica que ofrece servicios de tiempo de ejecución para aplicaciones construidas sobre ella. Cuando es usada la configuración predeterminada de XWiki, es posible que un atacante cargue un SVG que contenga un script ejecutado cuando es ejecutada la acción de descarga en el archivo. Este problema ha sido parcheado para que la configuración por defecto no permita mostrar los archivos SVG en el navegador. Se aconseja a usuarios que actualicen o desestimen la carga de archivos SVG","source":"nvd"}],"published":"2022-02-04T22:30:14.000Z","modified":"2026-07-08T06:27:32.259Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","score":4.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 12.10.6","status":"affected"},{"version":">= 13.0, < 13.3RC1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"12.10.6"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"13.0","status":"affected","fixed":"13.3RC1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"13.0","status":"affected","fixed":"13.3RC1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-tool-configuration-resources","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"12.10.6"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tool-configuration-resources","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-tool-configuration-resources","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0","fixed":"12.10.6"},{"status":"affected","introduced":"13.0","lastAffected":"13.2"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9jq9-c2cv-pcrj","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/5853d492b3a274db0d94d560e2a5ea988a271c62","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-18368","tags":["exploit","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43841","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-22T15:51:33.073Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43841","url":"https://www.cve.org/CVERecord?id=CVE-2021-43841","licence":"CVE Terms of Use","modified":"2025-04-22T18:27:22.922Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9jq9-c2cv-pcrj","url":"https://github.com/advisories/GHSA-9jq9-c2cv-pcrj","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:32.259Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43841","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43841","licence":"Public domain","modified":"2026-06-17T04:11:33.017Z"}],"updatedAt":"2026-11-25T22:24:36.610Z","epss":{"score":0.00899,"percentile":0.60687,"date":"2026-12-01T12:00:22.000Z"}}