{"id":"CVE-2022-46181","state":"PUBLISHED","title":"Gotify server XSS vulnerability in the application image file upload","description":"Gotify server is a simple server for sending and receiving messages in real-time per WebSocket. Versions prior to 2.2.2 contain an XSS vulnerability that allows authenticated users to upload .html files. An attacker could execute client side scripts **if** another user opened a link. The attacker could potentially take over the account of the user that clicked the link. The Gotify UI won't natively expose such a malicious link, so an attacker has to get the user to open the malicious link in a context outside of Gotify. The vulnerability has been fixed in version 2.2.2. As a workaround, you can block access to non image files via a reverse proxy in the `./image` directory.","publishedAt":"2022-12-29T18:36:46.603Z","updatedAt":"2025-04-10T18:02:15.686Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["gotify server"],"affected":[{"vendor":"gotify","product":"server","versions":[{"version":"< 2.2.2","status":"affected"}]}],"references":["https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","https://github.com/gotify/server/pull/534","https://github.com/gotify/server/pull/535"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:50:53.608Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/46xxx/CVE-2022-46181.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-46181","state":"PUBLISHED","datePublished":"2022-12-29T18:36:46.603Z","dateUpdated":"2025-04-10T18:02:15.686Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-11-28T17:27:19.999Z"},"containers":{"cna":{"title":"Gotify server XSS vulnerability in the application image file upload","descriptions":[{"lang":"en","value":"Gotify server is a simple server for sending and receiving messages in real-time per WebSocket. Versions prior to 2.2.2 contain an XSS vulnerability that allows authenticated users to upload .html files. An attacker could execute client side scripts **if** another user opened a link. The attacker could potentially take over the account of the user that clicked the link. The Gotify UI won't natively expose such a malicious link, so an attacker has to get the user to open the malicious link in a context outside of Gotify. The vulnerability has been fixed in version 2.2.2. As a workaround, you can block access to non image files via a reverse proxy in the `./image` directory."}],"affected":[{"vendor":"gotify","product":"server","versions":[{"version":"< 2.2.2","status":"affected"}]}],"references":[{"url":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","name":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gotify/server/pull/534","name":"https://github.com/gotify/server/pull/534","tags":["x_refsource_MISC"]},{"url":"https://github.com/gotify/server/pull/535","name":"https://github.com/gotify/server/pull/535","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/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-29T18:36:46.603Z"},"source":{"advisory":"GHSA-xv6x-456v-24xh","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","name":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/gotify/server/pull/534","name":"https://github.com/gotify/server/pull/534","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/gotify/server/pull/535","name":"https://github.com/gotify/server/pull/535","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T14:31:44.432Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-10T18:02:01.051299Z","id":"CVE-2022-46181","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-10T18:02:15.686Z"}}]}}}