# GHSA-f36p-42jv-8rh2: Lithium vulnerable to Cross Site Scripting in provided Swagger-UI

- Severity: High 8.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-09-30T04:53:37.000Z
- Modified: 2024-11-28T05:29:07.315Z
- Weaknesses: CWE-79

## Description

### Impact
A  XSS vulnerability in the provided (outdated) Swagger-UI is exploitable in applications using lithium with Swagger-UI enabled.
This allows an attacker gain Remote Code Execution (RCE) and potentially exfiltrate secrets in the context of this swagger session.


### Patches
The used swagger-ui was updated by switching to the latest version of dropwizard-swagger in 8b9b406d608fe482ec0e7adf8705834bca92d7df


### Workarounds
The risk of injected external content can be reduced by setting up a [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy).


### References
* https://www.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers/


### Credits
We thank [Mohit Kumar](https://www.linkedin.com/in/mohit-kumar-4ab6b3bb) for reporting this vulnerability!

(As written by GitHub Advisory Database.)

## Affected

- com.wire:lithium (Maven): before 3.4.2
- com.wire.bots:lithium (Maven): all versions

## References

- <https://github.com/wireapp/lithium/security/advisories/GHSA-f36p-42jv-8rh2> (web)
- <https://github.com/wireapp/lithium/commit/8b9b406d608fe482ec0e7adf8705834bca92d7df> (web)
- <https://github.com/wireapp/lithium> (package)

## Sources

- GitHub Advisory Database: [GHSA-f36p-42jv-8rh2](https://github.com/advisories/GHSA-f36p-42jv-8rh2), CC-BY-4.0, modified 2024-11-28

---

Page: https://cve.day/GHSA-f36p-42jv-8rh2 · Whole record: https://cve.day/GHSA-f36p-42jv-8rh2.json · Rebuilt by cve.day 2026-11-25T22:56:27.715Z
