{"api_version":"1","generated_at":"2026-07-22T03:09:39+00:00","cve":"CVE-2022-41947","urls":{"html":"https://cve.report/CVE-2022-41947","api":"https://cve.report/api/cve/CVE-2022-41947.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41947","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41947"},"summary":{"title":"CVE-2022-41947","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-08 23:15:00","updated_at":"2022-12-12 18:36:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","name":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","refsource":"MISC","tags":[],"title":"Content Security Policy (CSP) - HTTP | MDN","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg","name":"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg","refsource":"MISC","tags":[],"title":"XSS with user-uploaded files · Advisory · dhis2/dhis2-core · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41947","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41947","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"41947","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"dhis2","cpe5":"dhis_2","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41947","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"dhis2","cpe5":"dhis_2","cpe6":"2.39.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-41947","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","cweId":"CWE-79"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"dhis2","product":{"product_data":[{"product_name":"dhis2-core","version":{"version_data":[{"version_value":"< 2.36.12.1","version_affected":"="},{"version_value":">= 2.37.0.0, < 2.37.8.1","version_affected":"="},{"version_value":">= 2.38.0.0, < 2.38.2.1","version_affected":"="},{"version_value":">= 2.39.0.0, < 2.39.0.1","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg","refsource":"MISC","name":"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg"},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","refsource":"MISC","name":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP"}]},"source":{"advisory":"GHSA-763w-rm78-6xcg","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-08 23:15:00","lastModifiedDate":"2022-12-12 18:36:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:dhis2:dhis_2:2.39.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*","versionStartIncluding":"2.38.0","versionEndExcluding":"2.38.2.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*","versionStartIncluding":"2.37.0","versionEndExcluding":"2.37.8.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*","versionStartIncluding":"2.35.0","versionEndExcluding":"2.36.12.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}