CVE-2022-41947: Cross-site Scripting with user-uploaded files in dhis2-core
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
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.