CVE-2022-46181

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.

Category

6.1
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.20%
Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory github.com
Affected: gotify server
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-46181?
CVE-2022-46181 has been scored as a medium severity vulnerability.
How to fix CVE-2022-46181?
To fix CVE-2022-46181, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-46181 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-46181 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-46181?
CVE-2022-46181 affects gotify server.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.