{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-46181","id":"CVE-2022-46181","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 nativel","descriptionLong":"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.","published":"2022-12-29T18:36:46.603Z","updated":"2026-10-28T02:30:21.402293295Z","reserved":"2022-11-28T17:27:19.999Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["gotify server"],"affectedProducts":[{"vendor":"gotify","product":"server","defaultStatus":null,"versions":[{"version":"< 2.2.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/gotify/server","purl":"pkg:golang/github.com/gotify/server","ranges":["<2.2.2","all versions"],"fixed":["2.2.2"],"advisory":"GHSA-xv6x-456v-24xh"},{"ecosystem":"Go","name":"github.com/gotify/server/v2","purl":"pkg:golang/github.com/gotify/server/v2","ranges":["<2.2.2"],"fixed":["2.2.2"],"advisory":"GO-2022-1208"}],"cwes":["CWE-79"],"aliases":["GHSA-xv6x-456v-24xh","GO-2022-1208"],"references":[{"url":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/gotify/server/pull/534","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/gotify/server/pull/535","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46181.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46181","tags":["advisory"]},{"url":"https://github.com/gotify/server","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00545,"epssPercentile":0.4649,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-46181","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46181","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-46181","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xv6x-456v-24xh","ok":true,"note":"GHSA-xv6x-456v-24xh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-46181","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}