Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft OpenAPI URL with malicious scope
-
DeliveryPhish authenticated DHIS2 user to open link
-
ExploitReflected script executes in DHIS2 origin
-
ExecutionHijack session and call APIs as victim
-
ImpactExfiltrate or manipulate DHIS2 data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to be a logged-in DHIS2 user (CVSS PR:L indicates authentication is needed to reach the OpenAPI HTML endpoint) and to actively open an attacker-crafted URL (UI:A/required), where the crafted |
| Impact | The vendor CVSS 4.0 base score is 7.3 (High) with vector AV:N/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H - network-reachable but gated by high attack complexity, low-privilege authentication, and required active user interaction (the victim must open a crafted link). These gating factors, together with the absence of a KEV listing, any EPSS figure, or a published PoC, put this below drive-by/wormable severity: it is a credible session-compromise vector but requires social engineering of a logged-in user, so it is a real but not emergency priority for internet-facing or multi-user DHIS2 deployments. One notable data conflict: the CVE description and GHSA-6785-hj47-c27h describe a reflected XSS, yet the linked source-code evidence (PR #24158) shows unrelated hardening - SQL identifier quoting in DefaultSqlViewService and a Java deserialization allow-list filter in HibernateUserSettingStore - rather than an OpenAPI/ |
| Exploit ScenarioDerived | An attacker crafts a DHIS2 OpenAPI HTML URL with a malicious |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
Reflected cross-site scripting in the DHIS2 OpenAPI HTML documentation endpoint allows an attacker to execute arbitrary JavaScript in a victim's browser within the DHIS2 origin by luring an authenticated user to a crafted URL. The endpoint echoes the scope query parameter into the generated HTML page without sufficient sanitization (CWE-79), affecting DHIS2 core versions 2.42 and 2.43 prior to the 2026-06-09 security releases and the 2.44 development branch. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but successful exploitation can hijack the victim's DHIS2 session and act with their privileges.
RemediationAI
Vendor-released patch: upgrade to 2.42.5.1 or 2.43.0.1 (or the latest patched 2.42/2.43 line branch build), and for pre-release use pull the fixed 2.44 development branch, per advisory https://github.com/dhis2/dhis2-core/security/advisories/GHSA-6785-hj47-c27h. If immediate patching is not possible, restrict or block access to the OpenAPI HTML documentation endpoint at the reverse proxy (many production deployments do not need the interactive OpenAPI docs exposed to end users), which removes the reflection surface at the cost of losing in-app API documentation; additionally deploy a strict Content-Security-Policy that disallows inline script execution on the DHIS2 origin to blunt reflected XSS, accepting that a restrictive CSP may break some bundled apps and require tuning. Educate operators not to open OpenAPI URLs received from untrusted sources, since exploitation depends on the victim clicking a crafted link.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DHIS2 is an open-source, Java/Spring-based health management information platform (cpe:2.3:a:dhis2:dhis2-core) used to capture, validate, analyze and visualize aggregate and event data. The affected component is the built-in OpenAPI documentation renderer, which produces an HTML page describing the API; the scope query parameter is reflected into that document. Because the value is inserted into the HTML/JavaScript context without adequate output encoding, it becomes a classic reflected XSS (CWE-79, Improper Neutralization of Input During Web Page Generation). The injected script runs in the DHIS2 web origin, so it inherits the victim's authenticated session context, cookies, and same-origin access to DHIS2 APIs.
Know when Dhis2 Core gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Reflected XSS reachable only by an authenticated user (PR:L) who must click a crafted link (UI:R); injected script crosses into the browser context (S:C) enabling session/data theft (C:H), while I set AC:L as straightforward reflection.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
DHIS2 is a flexible information system for data capture, management, validation, analytics and visualization. The DHIS2 OpenAPI HTML endpoint reflected values from the scope query parameter into the generated HTML document without sufficient sanitization. A crafted scope value could be rendered as active HTML or JavaScript in the OpenAPI documentation page. An attacker able to get a user to open a crafted OpenAPI HTML URL could execute JavaScript in that user's browser in the DHIS2 origin.
Affected versions: DHIS2 2.42 and 2.43 before the 2026-06-09 security patch releases, and the development branch for DHIS2 2.44 before the fix was merged. Patched in 2.42.5.1, 2.43.0.1, the 2.42 and 2.43 line branches, and the 2.44 development branch.
Executive ViewAI
DHIS2 core versions 2.42 and 2.43 contain a reflected cross-site scripting vulnerability in the OpenAPI documentation endpoint that allows attackers to hijack authenticated user sessions. By luring DHIS2 users to a malicious link, attackers could gain unauthorized access to organizational data and system functions with the victim's full privileges. Organizations using affected versions must upgrade immediately to mitigate this critical session-hijacking risk.
Apply vendor patch: update DHIS2 2.42 and 2.43 to versions released on or after 2026-06-09. For pre-patch environments: restrict network access to OpenAPI documentation endpoints and implement web application firewall rules to detect XSS patterns in the 'scope' query parameter.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Dhis2 Core
View allRemote code execution in DHIS2 Core versions 2.42.0 through before 2.42.5.1 and 2.43.0 through before 2.43.0.1 allows an
Error-based SQL injection in the DHIS2 core SqlView API (the `filter` parameter of `/api/sqlViews/{viewId}/data.json`) l
EUVD-2026-46362
NVD
CVE.org
EPSS
GitHub
Exploit-DB