Cross-site Scripting with user-uploaded files in dhis2-core
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dhis2 | dhis2-core | before 2.36.12.1; 2.37.0.0 to before 2.37.8.1; 2.38.0.0 to before 2.38.2.1; 2.39.0.0 to before 2.39.0.1 | 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1 | Patch available | CNA |
- dhis2-core Vendordhis2 Affected before 2.36.12.1; 2.37.0.0 to before 2.37.8.1; 2.38.0.0 to before 2.38.2.1; 2.39.0.0 to before 2.39.0.1 Fixed in 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1 Patch available CNA
Remediation
- Fix · CNA dhis2-core (dhis2) Fixed in 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1
Timeline
- 2026-10-02 Threatist record created from CVE-2022-41947
References
More dhis2 Dhis 2 vulnerabilities
- TI-2022-08660 SQL Injection in DHIS2's in OrgUnit program association CVSS 3.1HIGH 8.8
- TI-2021-16565 SQL Injection in DHIS2 Tracker API CVSS 3.1HIGH 8.8
- TI-2021-18026 SQL Injection in DHIS2 Tracker API CVSS 3.1HIGH 8.8
- TI-2021-12372 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in dhis2-core CVSS 3.1HIGH 8.8
- TI-2022-20289 Privilege Chaining with the user admin role in dhis2-core CVSS 3.1HIGH 7.2
- TI-2023-14849 DHIS2 Core unrestricted session cookies with Personal Access Tokens CVSS 3.1HIGH 7.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences