{"id":"CVE-2022-41947","published":"2022-12-08T22:14:14Z","modified":"2025-04-23T16:30:27Z","title":"Cross-site Scripting with user-uploaded files in dhis2-core","vendor":"dhis2","product":"dhis2-core","tier":"tail","description":{"text":"DHIS 2 is an open source information system for data capture, management, validation, analytics and visualization. Through various features of DHIS2, an authenticated user may be able to upload a file which includes embedded javascript. The user could then potentially trick another authenticated user to open the malicious file in a browser which would trigger the javascript code, resulting in a cross-site scripting (XSS) attack. DHIS2 administrators should upgrade to the following hotfix releases: 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1. Users unable to upgrade may add the following simple CSP rule in your web proxy to the vulnerable endpoints: `script-src 'none'`. This workaround will prevent all javascript from running on those endpoints.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00394,"percentile":0.34489,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg","tags":["x_refsource_CONFIRM"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":6.9},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"dhis2","affectedVersions":[{"vendor":"dhis2","product":"dhis2-core","versions":["< 2.36.12.1",">= 2.37.0.0, < 2.37.8.1",">= 2.38.0.0, < 2.38.2.1",">= 2.39.0.0, < 2.39.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:52:45.428008Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-45057","exploited":false,"provenance":"source"}}