GHSA-f36p-42jv-8rh2 Lithium vulnerable to Cross Site Scripting in provided Swagger-UI
- Published
- Updated
- Exploit status
- No public exploit known
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.
References
Credits
We thank Mohit Kumar for reporting this vulnerability!
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| com.wire.bots/lithium(Maven) | < 3.4.2; All versions | 3.4.2 | Partially fixed |
| com.wire/lithium(Maven) | < 3.4.2; = 3.3.0; = 3.3.1; = 3.3.2 +7 more | 3.4.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| com.wire/lithium(Maven) | < 3.4.2 | 3.4.2 |
| com.wire.bots/lithium(Maven) | < 3.4.2 | 3.4.2 |
| com.wire/lithium(Maven) | = 3.3.0 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.1 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.2 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.3 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.4 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.5 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.6 | No fix listed |
| com.wire/lithium(Maven) | = 3.3.7 | No fix listed |
| com.wire/lithium(Maven) | = 3.4.0 | No fix listed |
| com.wire/lithium(Maven) | = 3.4.1 | No fix listed |
| com.wire.bots/lithium(Maven) | All versions | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com
- github.com product