SecurityContext

CVE-2022-41947: DHIS 2 - Stored XSS

  • Cve: CVE-2022-41947
  • Name: DHIS 2 - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary scripts in users' browsers, potentially stealing data or hijacking sessions.
  • Remediation: Upgrade to hotfix releases 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1 or implement CSP rule 'script-src 'none'' as a workaround.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to open malicious file
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00394
  • Epss percentile: 0.34363
  • Assignee: [email protected]
  • Published at: 2022-12-08T23:15:10Z
  • Age in days: 1447
  • Modified at: 2026-06-17T05:04:07Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-41947
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcgnvdMitigation, Third Party Advisory
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSPnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
dhis2:dhis_2= 2.39.0; >= 2.38.0, < 2.38.2.1; >= 2.37.0, < 2.37.8.1; >= 2.35.0, < 2.36.12.1nonvd/v1/products/dhis2/dhis_2

Projects

RepositoryLink kindsIndexedUrl
dhis2/dhis2-coresecurity_advisoryyes/v1/repositories/dhis2/dhis2-core

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts