{"api_version":"1","generated_at":"2026-07-23T11:18:30+00:00","cve":"CVE-2022-46181","urls":{"html":"https://cve.report/CVE-2022-46181","api":"https://cve.report/api/cve/CVE-2022-46181.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-46181","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-46181"},"summary":{"title":"CVE-2022-46181","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-29 19:15:00","updated_at":"2023-01-09 19:56:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/gotify/server/pull/535","name":"https://github.com/gotify/server/pull/535","refsource":"MISC","tags":[],"title":"Only serve image files on ./image by jmattheis · Pull Request #535 · gotify/server · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","name":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","refsource":"MISC","tags":[],"title":"XSS vulnerability in the application image file upload · Advisory · gotify/server · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/gotify/server/pull/534","name":"https://github.com/gotify/server/pull/534","refsource":"MISC","tags":[],"title":"Fix file upload XSS by jmattheis · Pull Request #534 · gotify/server · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-46181","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46181","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"46181","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gotify","cpe5":"server","cpe6":"*","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-46181","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","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."}]},"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":"gotify","product":{"product_data":[{"product_name":"server","version":{"version_data":[{"version_value":"< 2.2.2","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","refsource":"MISC","name":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh"},{"url":"https://github.com/gotify/server/pull/534","refsource":"MISC","name":"https://github.com/gotify/server/pull/534"},{"url":"https://github.com/gotify/server/pull/535","refsource":"MISC","name":"https://github.com/gotify/server/pull/535"}]},"source":{"advisory":"GHSA-xv6x-456v-24xh","discovery":"UNKNOWN"},"impact":{"cvss":[{"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"}]}},"nvd":{"publishedDate":"2022-12-29 19:15:00","lastModifiedDate":"2023-01-09 19:56: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:gotify:server:*:*:*:*:*:*:*:*","versionEndExcluding":"2.2.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}