Read the docs
TI-2022-20288 Aliases CVE-2022-41947

Cross-site Scripting with user-uploaded files in dhis2-core

Priority LOW 25CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0038 32nd percentileScored 2026-11-07
Fix Fixed dhis2-core (dhis2): 2.36.12.1, 2.37.8.1, 2.38.2.1 +1

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

VendorProductAffected versionsFixed inStatusSource
dhis2dhis2-corebefore 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.12.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1Patch availableCNA
  • 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

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*2.35.0 to before 2.36.12.1; 2.37.0 to before 2.37.8.1; 2.38.0 to before 2.38.2.1Vulnerabledhis2
cpe:2.3:a:dhis2:dhis_2:2.39.0:*:*:*:*:*:*:*2.39.0Vulnerabledhis2
  • cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:* Versions 2.35.0 to before 2.36.12.1; 2.37.0 to before 2.37.8.1; 2.38.0 to before 2.38.2.1 Vulnerable ·dhis2
  • cpe:2.3:a:dhis2:dhis_2:2.39.0:*:*:*:*:*:*:* Versions 2.39.0 Vulnerable ·dhis2

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

  1. 2026-10-02 Threatist record created from CVE-2022-41947

References

  • 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
See all 9 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences