# CVE-2022-41947: Cross-site Scripting with user-uploaded files in dhis2-core

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2022-12-08T22:14:14.759Z
- Modified: 2026-06-17T05:04:07.003Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dhis2 dhis2-core: < 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
- dhis2 dhis_2: from 2.35.0 before 2.36.12.1; from 2.37.0 before 2.37.8.1; from 2.38.0 before 2.38.2.1; 2.39.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg> (mitigation, third-party-advisory)
- <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-41947](https://www.cve.org/CVERecord?id=CVE-2022-41947), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-41947](https://nvd.nist.gov/vuln/detail/CVE-2022-41947), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-41947 · Whole record: https://cve.day/CVE-2022-41947.json · Rebuilt by cve.day 2026-11-25T22:58:17.330Z
