# GHSA-3244-8mff-w398: Reflected XSS in Gotify's /docs via import of outdated Swagger UI

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-01-10T22:48:43.000Z
- Modified: 2026-03-03T04:53:13.580Z
- Also known as: GO-2023-1471
- Weaknesses: CWE-79

## Description

### Impact

Gotify exposes an outdated instance of the [Swagger UI](https://swagger.io/tools/swagger-ui/) API documentation frontend at `/docs` which is susceptible to reflected XSS attacks when loading external Swagger config files.

Specifically, the DOMPurify version included with this version of Swagger UI is vulnerable to a [rendering XSS](https://www.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers/) incorporating the mutation payload detailed in [CVE-2020-26870](https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/) which was patched in 2021. This is further tracked in the GitHub Advisory Database as GHSA-QRMM-W75W-3WPX.

An attacker can execute arbitrary JavaScript and potentially take over the account of the user that clicked the link. Keep in mind, 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.

### Patches

The vulnerability has been fixed in version 2.2.3.

### References

https://github.com/gotify/server/pull/541

(As written by GitHub Advisory Database.)

## Affected

- github.com/gotify/server (Go): before 2.2.3; all versions
- github.com/gotify/server/v2 (Go): before 2.2.3

## References

- <https://github.com/gotify/server/security/advisories/GHSA-3244-8mff-w398> (advisory, web)
- <https://github.com/gotify/server/pull/541> (fix, web)
- <https://github.com/gotify/server> (package)
- <https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass> (web)
- <https://www.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers> (web)

## Sources

- GitHub Advisory Database: [GHSA-3244-8mff-w398](https://github.com/advisories/GHSA-3244-8mff-w398), CC-BY-4.0, modified 2024-08-20
- Go Vulnerability Database: [GO-2023-1471](https://pkg.go.dev/vuln/GO-2023-1471), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-3244-8mff-w398 · Whole record: https://cve.day/GHSA-3244-8mff-w398.json · Rebuilt by cve.day 2026-11-25T22:56:23.441Z
