Medium severity · published Dec 8, 2022
CVE-2022-41947
Cross-site Scripting with user-uploaded files in dhis2-core
5.4
CVSS
0.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DH
dhis2-core · dhis2
< 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 · source: vendor
D2
Dhis 2 · Dhis2
2.35.0 before 2.36.12.1; 2.37.0 before 2.37.8.1; 2.38.0 before 2.38.2.1; 2.39.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-41947
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-41947
Third Party Advisory
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
Mitigation
https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg
More from dhis2-core
9.1
CVE-2026-55083
DHIS2: Unsafe Java Deserialization - Remote Code Execution (RCE)
8.8
CVE-2026-55084
SQL Injection in SqlView Filter Parameter Leading to Arbitrary Database Read
8.7
CVE-2026-55082
DHIS2 SQL injection in SQL View filter values
7.5
CVE-2023-31139
DHIS2 Core unrestricted session cookies with Personal Access Tokens
7.3
CVE-2026-55081
DHIS2 Reflected XSS in OpenAPI HTML scope parameter
