CVE-2022-41947 Cross-site Scripting with user-uploaded files in dhis2-core
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dhis2 dhis 2 | = 2.39.0; >= 2.35.0, < 2.36.12.1; >= 2.37.0, < 2.37.8.1; >= 2.38.0, < 2.38.2.1 | 2.36.12.1, 2.37.8.1, 2.38.2.1 | Fixed |
| 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 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dhis2-core | = < 2.36.12.1 | No fix listed |
| dhis2-core | = >= 2.37.0.0, < 2.37.8.1 | No fix listed |
| dhis2-core | = >= 2.38.0.0, < 2.38.2.1 | No fix listed |
| dhis2-core | = >= 2.39.0.0, < 2.39.0.1 | No fix listed |
| dhis2 dhis 2 | >= 2.35.0, < 2.36.12.1 | 2.36.12.1 |
| dhis2 dhis 2 | >= 2.37.0, < 2.37.8.1 | 2.37.8.1 |
| dhis2 dhis 2 | >= 2.38.0, < 2.38.2.1 | 2.38.2.1 |
| dhis2 dhis 2 | = 2.39.0 | No fix listed |
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