{"id":"CVE-2022-41947","state":"PUBLISHED","title":"Cross-site Scripting with user-uploaded files in dhis2-core","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.","publishedAt":"2022-12-08T22:14:14.759Z","updatedAt":"2025-04-23T16:30:27.064Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["dhis2 dhis2-core"],"affected":[{"vendor":"dhis2","product":"dhis2-core","versions":[{"version":"< 2.36.12.1","status":"affected"},{"version":">= 2.37.0.0, < 2.37.8.1","status":"affected"},{"version":">= 2.38.0.0, < 2.38.2.1","status":"affected"},{"version":">= 2.39.0.0, < 2.39.0.1","status":"affected"}]}],"references":["https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg","https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:50:37.819Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/41xxx/CVE-2022-41947.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-41947","state":"PUBLISHED","datePublished":"2022-12-08T22:14:14.759Z","dateUpdated":"2025-04-23T16:30:27.064Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","requesterUserId":"c184a3d9-dc98-4c48-a45b-d2d88cf0ac74","dateReserved":"2022-09-30T16:38:28.941Z"},"containers":{"cna":{"title":"Cross-site Scripting with user-uploaded files in dhis2-core ","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"dhis2","product":"dhis2-core","versions":[{"version":"< 2.36.12.1","status":"affected"},{"version":">= 2.37.0.0, < 2.37.8.1","status":"affected"},{"version":">= 2.38.0.0, < 2.38.2.1","status":"affected"},{"version":">= 2.39.0.0, < 2.39.0.1","status":"affected"}]}],"references":[{"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","tags":["x_refsource_CONFIRM"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","name":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2022-12-08T22:14:14.759Z"},"source":{"advisory":"GHSA-763w-rm78-6xcg","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"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","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","name":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T12:56:38.668Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-23T13:52:45.428008Z","id":"CVE-2022-41947","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-23T16:30:27.064Z"}}]}}}