CVE-2022-41947 (GCVE-0-2022-41947)
Vulnerability from cvelistv5 – Published: 2022-12-08 22:14 – Updated: 2025-04-23 16:30
VLAI?
Title
Cross-site Scripting with user-uploaded files in dhis2-core
Summary
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.
Severity ?
5.4 (Medium)
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Assigner
References
| URL | Tags | |||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| dhis2 | dhis2-core |
Affected:
< 2.36.12.1
Affected: >= 2.37.0.0, < 2.37.8.1 Affected: >= 2.38.0.0, < 2.38.2.1 Affected: >= 2.39.0.0, < 2.39.0.1 |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-03T12:56:38.668Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"name": "https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg"
},
{
"name": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2022-41947",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-04-23T13:52:45.428008Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-04-23T16:30:27.064Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "dhis2-core",
"vendor": "dhis2",
"versions": [
{
"status": "affected",
"version": "\u003c 2.36.12.1"
},
{
"status": "affected",
"version": "\u003e= 2.37.0.0, \u003c 2.37.8.1"
},
{
"status": "affected",
"version": "\u003e= 2.38.0.0, \u003c 2.38.2.1"
},
{
"status": "affected",
"version": "\u003e= 2.39.0.0, \u003c 2.39.0.1"
}
]
}
],
"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 \u0027none\u0027`. This workaround will prevent all javascript from running on those endpoints."
}
],
"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",
"description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2022-12-08T22:14:14.759Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg"
},
{
"name": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP",
"tags": [
"x_refsource_MISC"
],
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP"
}
],
"source": {
"advisory": "GHSA-763w-rm78-6xcg",
"discovery": "UNKNOWN"
},
"title": "Cross-site Scripting with user-uploaded files in dhis2-core "
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2022-41947",
"datePublished": "2022-12-08T22:14:14.759Z",
"dateReserved": "2022-09-30T16:38:28.941Z",
"dateUpdated": "2025-04-23T16:30:27.064Z",
"requesterUserId": "c184a3d9-dc98-4c48-a45b-d2d88cf0ac74",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2022-41947",
"date": "2026-04-28",
"epss": "0.00216",
"percentile": "0.43979"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2022-41947\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2022-12-08T23:15:10.813\",\"lastModified\":\"2024-11-21T07:24:07.887\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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 \u0027none\u0027`. This workaround will prevent all javascript from running on those endpoints.\"},{\"lang\":\"es\",\"value\":\"DHIS 2 es un sistema de informaci\u00f3n de c\u00f3digo abierto para captura, gesti\u00f3n, validaci\u00f3n, an\u00e1lisis y visualizaci\u00f3n de datos. A trav\u00e9s de varias funciones de DHIS2, un usuario autenticado puede cargar un archivo que incluye javascript integrado. Luego, el usuario podr\u00eda enga\u00f1ar a otro usuario autenticado para que abra el archivo malicioso en un navegador, lo que activar\u00eda el c\u00f3digo javascript, lo que resultar\u00eda en un ataque de Cross-Site Scripting (XSS). Los administradores de DHIS2 deben actualizar a las siguientes versiones de revisi\u00f3n: 2.36.12.1, 2.37.8.1, 2.38.2.1, 2.39.0.1. Los usuarios que no puedan actualizar pueden agregar la siguiente regla CSP simple en su proxy web a los endpoints vulnerables: `script-src \u0027none\u0027`. Esta soluci\u00f3n evitar\u00e1 que todo JavaScript se ejecute en esos endpoints.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N\",\"baseScore\":5.4,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.3,\"impactScore\":2.7},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N\",\"baseScore\":5.4,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.3,\"impactScore\":2.7}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"2.35.0\",\"versionEndExcluding\":\"2.36.12.1\",\"matchCriteriaId\":\"A1C27E48-5EE7-4A34-916F-8B701C6BF8E0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"2.37.0\",\"versionEndExcluding\":\"2.37.8.1\",\"matchCriteriaId\":\"A6BDDC0C-4FFE-474A-827E-978DD52338C7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"2.38.0\",\"versionEndExcluding\":\"2.38.2.1\",\"matchCriteriaId\":\"A5767431-7751-48F4-8F6F-2D4A6CADABBB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:dhis2:dhis_2:2.39.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A2EB62DB-53E9-47D3-8659-392DE9A8351A\"}]}]}],\"references\":[{\"url\":\"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Mitigation\",\"Third Party Advisory\"]},{\"url\":\"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Mitigation\",\"Third Party Advisory\"]}]}}",
"vulnrichment": {
"containers": "{\"cna\": {\"title\": \"Cross-site Scripting with user-uploaded files in dhis2-core \", \"problemTypes\": [{\"descriptions\": [{\"cweId\": \"CWE-79\", \"lang\": \"en\", \"description\": \"CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)\", \"type\": \"CWE\"}]}], \"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\"}}], \"references\": [{\"name\": \"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg\", \"tags\": [\"x_refsource_CONFIRM\"], \"url\": \"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg\"}, {\"name\": \"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\"}], \"affected\": [{\"vendor\": \"dhis2\", \"product\": \"dhis2-core\", \"versions\": [{\"version\": \"\u003c 2.36.12.1\", \"status\": \"affected\"}, {\"version\": \"\u003e= 2.37.0.0, \u003c 2.37.8.1\", \"status\": \"affected\"}, {\"version\": \"\u003e= 2.38.0.0, \u003c 2.38.2.1\", \"status\": \"affected\"}, {\"version\": \"\u003e= 2.39.0.0, \u003c 2.39.0.1\", \"status\": \"affected\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2022-12-08T22:14:14.759Z\"}, \"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 \u0027none\u0027`. This workaround will prevent all javascript from running on those endpoints.\"}], \"source\": {\"advisory\": \"GHSA-763w-rm78-6xcg\", \"discovery\": \"UNKNOWN\"}}, \"adp\": [{\"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T12:56:38.668Z\"}, \"title\": \"CVE Program Container\", \"references\": [{\"name\": \"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg\", \"tags\": [\"x_refsource_CONFIRM\", \"x_transferred\"], \"url\": \"https://github.com/dhis2/dhis2-core/security/advisories/GHSA-763w-rm78-6xcg\"}, {\"name\": \"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"], \"url\": \"https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP\"}]}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-41947\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-04-23T13:52:45.428008Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-04-23T13:52:46.803Z\"}}]}",
"cveMetadata": "{\"cveId\": \"CVE-2022-41947\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"state\": \"PUBLISHED\", \"assignerShortName\": \"GitHub_M\", \"requesterUserId\": \"c184a3d9-dc98-4c48-a45b-d2d88cf0ac74\", \"dateReserved\": \"2022-09-30T16:38:28.941Z\", \"datePublished\": \"2022-12-08T22:14:14.759Z\", \"dateUpdated\": \"2025-04-23T16:30:27.064Z\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…