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

Medium 5.4 Published Updated

Authenticated users can upload files with embedded JavaScript, enabling XSS attacks against other users who open the files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-41947?

CVE-2022-41947 is a medium-severity cross-site scripting vulnerability in dhis2-core, published on 8 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-79

Which versions are affected by CVE-2022-41947?

It affects 1 product.

Products include Dhis2 Dhis 2.

How do I fix CVE-2022-41947?

No fix has been published for CVE-2022-41947 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-41947 being exploited?

There is no known exploitation of CVE-2022-41947 in the wild and no public exploit code.

Sources

Also known as GHSA-763w-rm78-6xcg.

Is CVE-2022-41947 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free