{"id":"GHSA-f36p-42jv-8rh2","aliases":["GHSA-f36p-42jv-8rh2"],"related":[],"kind":"vulnerability","state":"published","title":"Lithium vulnerable to Cross Site Scripting in provided Swagger-UI","summary":"### Impact\nA  XSS vulnerability in the provided (outdated) Swagger-UI is exploitable in applications using lithium with Swagger-UI enabled.\nThis allows an attacker gain Remote Code Execution (RCE) and potentially exfiltrate secrets in the context of this swagger session.\n\n\n### Patches\nThe used swagger-ui was updated by switching to the latest version of dropwizard-swagger in 8b9b406d608fe482ec0e7adf8705834bca92d7df\n\n\n### Workarounds\nThe 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).\n\n\n### References\n* https://www.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers/\n\n\n### Credits\nWe thank [Mohit Kumar](https://www.linkedin.com/in/mohit-kumar-4ab6b3bb) for reporting this vulnerability!","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\nA  XSS vulnerability in the provided (outdated) Swagger-UI is exploitable in applications using lithium with Swagger-UI enabled.\nThis allows an attacker gain Remote Code Execution (RCE) and potentially exfiltrate secrets in the context of this swagger session.\n\n\n### Patches\nThe used swagger-ui was updated by switching to the latest version of dropwizard-swagger in 8b9b406d608fe482ec0e7adf8705834bca92d7df\n\n\n### Workarounds\nThe 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).\n\n\n### References\n* https://www.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers/\n\n\n### Credits\nWe thank [Mohit Kumar](https://www.linkedin.com/in/mohit-kumar-4ab6b3bb) for reporting this vulnerability!","format":"markdown","source":"ghsa"}],"published":"2022-09-30T04:53:37.000Z","modified":"2024-11-28T05:29:07.315Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.2"}],"ecosystem":"Maven","package":"com.wire:lithium","purl":"pkg:maven/com.wire/lithium","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"Maven","package":"com.wire.bots:lithium","purl":"pkg:maven/com.wire.bots/lithium","source":"ghsa"}],"references":[{"url":"https://github.com/wireapp/lithium/security/advisories/GHSA-f36p-42jv-8rh2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/wireapp/lithium/commit/8b9b406d608fe482ec0e7adf8705834bca92d7df","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/wireapp/lithium","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f36p-42jv-8rh2","url":"https://github.com/advisories/GHSA-f36p-42jv-8rh2","licence":"CC-BY-4.0","modified":"2024-11-28T05:29:07.315Z"}],"updatedAt":"2026-11-25T22:56:27.715Z"}