{"id":"CVE-2024-37900","aliases":["CVE-2024-37900","GHSA-wf3x-jccf-5g5g"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Platform vulnerable to Cross-site Scripting through attachment filename in uploader","summary":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When uploading an attachment with a malicious filename, malicious JavaScript code could be executed. This requires a social engineering attack to get the victim into uploading a file with a malicious name. The malicious code is solely executed during the upload and affects only the user uploading the attachment. While this allows performing actions in the name of that user, it seems unlikely that a user wouldn't notice the malicious filename while uploading the attachment. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When uploading an attachment with a malicious filename, malicious JavaScript code could be executed. This requires a social engineering attack to get the victim into uploading a file with a malicious name. The malicious code is solely executed during the upload and affects only the user uploading the attachment. While this allows performing actions in the name of that user, it seems unlikely that a user wouldn't notice the malicious filename while uploading the attachment. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen uploading an attachment with a malicious filename, malicious JavaScript code could be executed. This requires a social engineering attack to get the victim into uploading a file with a malicious name. The malicious code is solely executed during the upload and affects only the user uploading the attachment. While this allows performing actions in the name of that user, it seems unlikely that a user wouldn't notice the malicious filename while uploading the attachment.\n\nIn order to reproduce, as any user, create a file named `\"><img src=1 onerror=alert(1)>.jpg`. Then go to any page where you have edit rights and upload the file in the attachments tab. If alerts appear and display \"1\", then the instance is vulnerable.\n\n### Patches\nThis has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0.\n\n### Workarounds\nWe're not aware of any workaround except upgrading.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-19611\n* https://jira.xwiki.org/browse/XWIKI-21769\n* https://jira.xwiki.org/browse/XWIKI-19602\n* https://github.com/xwiki/xwiki-platform/commit/910a5018a50039e8b24556573dfe342f143ef949\n\n### Attribution\n\nThis vulnerability has been independently reported by Aleksey Solovev (Positive Technologies) and Georgios Roumeliotis for TwelveSec.","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica que ofrece servicios de ejecución para aplicaciones creadas sobre ella. Al cargar un archivo adjunto con un nombre de archivo malicioso, se podría ejecutar código JavaScript malicioso. Esto requiere un ataque de ingeniería social para lograr que la víctima cargue un archivo con un nombre malicioso. El código malicioso se ejecuta únicamente durante la carga y afecta únicamente al usuario que carga el archivo adjunto. Si bien esto permite realizar acciones en nombre de ese usuario, parece poco probable que un usuario no note el nombre de archivo malicioso al cargar el archivo adjunto. Esto ha sido parcheado en XWiki 14.10.21, 15.5.5, 15.10.6 y 16.0.0.","source":"nvd"}],"published":"2024-07-31T15:15:31.013Z","modified":"2026-06-17T07:39:00.900Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-94","CWE-96"],"affected":[{"ranges":[{"version":">= 4.2-milestone-3, < 14.10.21","status":"affected"},{"version":">= 15.0-rc-1, < 15.5.5","status":"affected"},{"version":">= 15.6-rc-1, < 15.10.6","status":"affected"},{"version":">= 16.0.0-rc-1, < 16.0.0","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"4.2-milestone-3","fixed":"14.10.21","status":"affected"},{"type":"custom","introduced":"15.0-rc-1","fixed":"15.5.5","status":"affected"},{"type":"custom","introduced":"15.6-rc","fixed":"15.10.6","status":"affected"},{"type":"custom","introduced":"16.0.0-rc-1","fixed":"16.0.0","status":"affected"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2-milestone-3","status":"affected","fixed":"14.10.21"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-war","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-war","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.5.5"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-war","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-war","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.6-rc-1","status":"affected","fixed":"15.10.6"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-war","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-war","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"16.0.0-rc-1","status":"affected","fixed":"16.0.0"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-war","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-war","source":"ghsa"},{"ranges":[{"status":"affected","introduced":">4.2","fixed":"14.10.21"},{"status":"affected","introduced":"15.0","fixed":"15.5.5"},{"status":"affected","introduced":"15.6","fixed":"15.10.6"},{"status":"affected","version":"4.2"},{"status":"affected","version":"4.2"},{"status":"affected","version":"16.0.0"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wf3x-jccf-5g5g","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/8b8a2d80529b9a9c038014c1eb6c2adc08069dfd","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/910a5018a50039e8b24556573dfe342f143ef949","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/9df46f8e5313af46f93bccd1ebc682e28126573f","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-19602","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-19611","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21769","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37900","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-08-01T14:43:57.149Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-37900","url":"https://www.cve.org/CVERecord?id=CVE-2024-37900","licence":"CVE Terms of Use","modified":"2024-08-13T13:37:13.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wf3x-jccf-5g5g","url":"https://github.com/advisories/GHSA-wf3x-jccf-5g5g","licence":"CC-BY-4.0","modified":"2024-11-18T16:26:57.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-37900","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37900","licence":"Public domain","modified":"2026-06-17T07:39:00.900Z"}],"updatedAt":"2026-11-25T22:58:43.476Z","epss":{"score":0.15804,"percentile":0.96951,"date":"2026-12-01T12:00:22.000Z"}}