{"id":"CVE-2022-41947","aliases":["CVE-2022-41947"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting with user-uploaded files in dhis2-core","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"DHIS 2 es un sistema de información de código abierto para captura, gestión, validación, análisis y visualización de datos. A través de varias funciones de DHIS2, un usuario autenticado puede cargar un archivo que incluye javascript integrado. Luego, el usuario podría engañar a otro usuario autenticado para que abra el archivo malicioso en un navegador, lo que activaría el código javascript, lo que resultaría en un ataque de Cross-Site Scripting (XSS). Los administradores de DHIS2 deben actualizar a las siguientes versiones de revisión: 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1. Los usuarios que no puedan actualizar pueden agregar la siguiente regla CSP simple en su proxy web a los endpoints vulnerables: `script-src 'none'`. Esta solución evitará que todo JavaScript se ejecute en esos endpoints.","source":"nvd"}],"published":"2022-12-08T22:14:14.759Z","modified":"2026-06-17T05:04:07.003Z","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":"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"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.36.12.1","status":"affected"},{"version":">= 2.37.0.0, < 2.37.8.1","status":"affected"},{"version":">= 2.38.0.0, < 2.38.2.1","status":"affected"},{"version":">= 2.39.0.0, < 2.39.0.1","status":"affected"}],"vendor":"dhis2","product":"dhis2-core","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.35.0","fixed":"2.36.12.1"},{"status":"affected","introduced":"2.37.0","fixed":"2.37.8.1"},{"status":"affected","introduced":"2.38.0","fixed":"2.38.2.1"},{"status":"affected","version":"2.39.0"}],"vendor":"dhis2","product":"dhis_2","cpe":"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg","tags":["mitigation","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:52:45.428Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-41947","url":"https://www.cve.org/CVERecord?id=CVE-2022-41947","licence":"CVE Terms of Use","modified":"2025-04-23T16:30:27.064Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-41947","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41947","licence":"Public domain","modified":"2026-06-17T05:04:07.003Z"}],"updatedAt":"2026-11-25T22:58:17.330Z","epss":{"score":0.00394,"percentile":0.35729,"date":"2026-12-01T12:00:22.000Z"}}