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

Published Dec 8, 2022
·
Updated

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.

Affected Software

4 affected components
DHIS2 DHIS 2>=2.35.0<2.36.12.1
DHIS2 DHIS 2>=2.37.0<2.37.8.1
DHIS2 DHIS 2>=2.38.0<2.38.2.1
DHIS2 DHIS 2=2.39.0

Event History

Dec 8, 2022
CVE Published
via MITRE·10:14 PM
Data Sourced
via MITRE·10:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2022-41947?

CVE-2022-41947 has a medium severity rating due to its potential to allow an attacker to execute arbitrary JavaScript in the context of another user.

2

How do I fix CVE-2022-41947?

To fix CVE-2022-41947, upgrade to a version of DHIS 2 that is not affected, specifically versions after 2.39.0.

3

What versions of DHIS 2 are affected by CVE-2022-41947?

Affected versions include DHIS 2 from 2.35.0 to 2.36.12.1, 2.37.0 to 2.37.8.1, 2.38.0 to 2.38.2.1, and 2.39.0.

4

What type of vulnerability is CVE-2022-41947?

CVE-2022-41947 is a cross-site scripting (XSS) vulnerability that can be exploited through file uploads.

5

Can CVE-2022-41947 be exploited by unauthenticated users?

No, CVE-2022-41947 requires the attacker to be an authenticated user to upload the file containing malicious JavaScript.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203