{"id":"CVE-2024-37900","summary":"XWiki Platform vulnerable to Cross-site Scripting through attachment filename in uploader","details":"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.","aliases":["GHSA-wf3x-jccf-5g5g"],"modified":"2026-11-11T13:22:51.484701824Z","published":"2024-07-31T15:15:31.013Z","database_specific":{"cwe_ids":["CWE-96"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37900.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-19602"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-19611"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-21769"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37900.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wf3x-jccf-5g5g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37900"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/8b8a2d80529b9a9c038014c1eb6c2adc08069dfd"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/910a5018a50039e8b24556573dfe342f143ef949"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/9df46f8e5313af46f93bccd1ebc682e28126573f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-commons","events":[{"introduced":"0"},{"fixed":"c6cc6af0637c7e8f8be850fe4af66576934f8a53"},{"introduced":"fdba4ca1398766e912f7888af5bdefbeef60d8b0"},{"fixed":"5583e277218ab5de9930d969082a19ed0db4e472"},{"introduced":"1e0e26611ad39442be884e876d902441a51fd34a"},{"fixed":"5408ff53a61f0775cc5314a7ccde04c61c84caba"},{"introduced":"f123a202495df2ca7bafb55a5eab2b497e2edb24"},{"last_affected":"d6d09da02106336d4756d6366ceac741d7367916"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"14.10.21"}]},{"cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","range":[{"introduced":"15.0"},{"fixed":"15.5.5"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","range":[{"introduced":"15.6"},{"fixed":"15.10.6"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:xwiki:xwiki:4.2:-:*:*:*:*:*:*","range":[{"introduced":"4.2-NA"},{"last_affected":"4.2-NA"}],"source":"CPE_STRING"},{"range":[{"introduced":"4.2-milestone3"},{"last_affected":"4.2-milestone3"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:xwiki:xwiki:4.2:milestone3:*:*:*:*:*:*"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"ae5540406c1644c52e2446edeb98958bab45a576"},{"fixed":"1bcc6e962dc5701ae6f9745a209a5c0c97461128"},{"introduced":"d823334f762d5ad86bea378b65af0b230668d401"},{"fixed":"447f13c6b159cf0671b65c6be8f790cf046d7ada"},{"introduced":"201a8cdfdaad44618c79c6dd0c0bb855b446aafb"},{"fixed":"150468c1e2cd64a2ad85b5053e9487943d3b9b1f"},{"introduced":"6f103dbca9c98cf3b53bfadb83d982facb198d56"},{"fixed":"3c6f5cf138d8095f63631e554ba448e4b780e162"},{"fixed":"6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28"},{"fixed":"8b8a2d80529b9a9c038014c1eb6c2adc08069dfd"},{"fixed":"910a5018a50039e8b24556573dfe342f143ef949"},{"fixed":"9df46f8e5313af46f93bccd1ebc682e28126573f"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"4.2-milestone-3"},{"fixed":"14.10.21"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"15.0-rc-1"},{"fixed":"15.5.5"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"15.6-rc-1"},{"fixed":"15.10.6"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"16.0.0-rc-1"},{"fixed":"16.0.0"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"8b8a2d80529b9a9c038014c1eb6c2adc08069dfd"}]},{"range":[{"fixed":"910a5018a50039e8b24556573dfe342f143ef949"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"9df46f8e5313af46f93bccd1ebc682e28126573f"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["4.2-NA","4.2-milestone3","xwiki-commons-15.10.5","xwiki-commons-15.10.4","xwiki-commons-15.10.3","xwiki-commons-15.10.2","xwiki-commons-15.10.1","xwiki-commons-14.10.20","xwiki-commons-15.5.4","xwiki-commons-15.10","xwiki-commons-15.10-rc-1","xwiki-commons-14.10.19","xwiki-commons-14.10.18","xwiki-commons-15.5.3","xwiki-commons-14.10.17","xwiki-commons-14.10.16","xwiki-commons-15.5.2","xwiki-commons-14.10.15","xwiki-commons-15.5.1","xwiki-commons-14.10.14","xwiki-commons-15.5","xwiki-commons-14.10.13","xwiki-commons-15.5-rc-1","xwiki-commons-14.10.12","xwiki-commons-14.10.11","xwiki-commons-14.10.10","xwiki-commons-14.10.9","xwiki-commons-14.10.8","xwiki-commons-14.10.7","xwiki-commons-14.10.6","xwiki-commons-14.10.5","xwiki-commons-14.10.4","xwiki-commons-14.10.3","xwiki-commons-14.10.2","xwiki-commons-14.10.1","xwiki-commons-14.10","xwiki-commons-8.3-milestone-2","xwiki-commons-8.3-milestone-1","xwiki-commons-8.2-milestone-2","xwiki-commons-8.2-milestone-1","xwiki-commons-8.1-milestone-2","xwiki-commons-8.1-milestone-1","xwiki-commons-8.0-milestone-2","xwiki-commons-8.0-milestone-1","xwiki-commons-4.2-milestone-3","xwiki-platform-16.0.0-rc-1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-37900.json","vanir_signatures":[{"source":"https://github.com/xwiki/xwiki-platform/commit/8b8a2d80529b9a9c038014c1eb6c2adc08069dfd","target":{"file":"xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/AttachmentIT.java"},"deprecated":false,"digest":{"line_hashes":["321442972380877900030825916961621418152","135812687669058421097419661142979475696","134684793249830509852864988425953008888","99167475640566429194729299951943958315","3795765500942361253039334972527639455","238006012062836187942413460702230217222"],"threshold":0.9},"id":"CVE-2024-37900-19412383","signature_type":"Line","signature_version":"v1"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki/xwiki-platform/commit/9df46f8e5313af46f93bccd1ebc682e28126573f","target":{"file":"xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/AttachmentIT.java"},"deprecated":false,"digest":{"line_hashes":["321442972380877900030825916961621418152","135812687669058421097419661142979475696","134684793249830509852864988425953008888","99167475640566429194729299951943958315","3795765500942361253039334972527639455","238006012062836187942413460702230217222"],"threshold":0.9},"id":"CVE-2024-37900-918a9344"},{"deprecated":false,"digest":{"line_hashes":["321442972380877900030825916961621418152","135812687669058421097419661142979475696","134684793249830509852864988425953008888","99167475640566429194729299951943958315","3795765500942361253039334972527639455","238006012062836187942413460702230217222"],"threshold":0.9},"id":"CVE-2024-37900-920503ed","signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki/xwiki-platform/commit/910a5018a50039e8b24556573dfe342f143ef949","target":{"file":"xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/AttachmentIT.java"}},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki/xwiki-platform/commit/6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28","target":{"file":"xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/AttachmentIT.java"},"deprecated":false,"digest":{"line_hashes":["321442972380877900030825916961621418152","135812687669058421097419661142979475696","134684793249830509852864988425953008888","99167475640566429194729299951943958315","3795765500942361253039334972527639455","238006012062836187942413460702230217222"],"threshold":0.9},"id":"CVE-2024-37900-ad68d733"}],"vanir_signatures_modified":"2026-11-11T13:22:51Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N"}]}