Vulnerability · Published Dec 8, 2022 · Assigned by GitHub_M
CVE-2022-41947Cross-site Scripting with user-uploaded files in dhis2-core
Medium 5.4
In plain English
A medium-severity cross-site scripting in dhis2-core from dhis2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities).
Official 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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Weakness: CWE-79 · Vector: 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 x_refsource_CONFIRM
- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP x_refsource_MISC