{"answers":{"affected":"4 open source packages ship an affected version, including com.wire.bots:lithium and com.wire:lithium.","exploited":"There is no known exploitation of GHSA-f36p-42jv-8rh2 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"GHSA-f36p-42jv-8rh2 is a cross-site scripting vulnerability in com.wire.bots:lithium, published on 30 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-f36p-42jv-8rh2 and fix it if it is affected.\n\nWhat it is: GHSA-f36p-42jv-8rh2 is a cross-site scripting vulnerability in com.wire.bots:lithium, published on 30 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-f36p-42jv-8rh2 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.wire.bots:lithium (Maven): affected all versions; no fix listed\n- com.wire.bots:lithium (Maven): affected all versions; no fix listed\n- com.wire:lithium (Maven): affected all versions; fixed in 3.4.2\n- com.wire:lithium (Maven): affected all versions; fixed in 3.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-f36p-42jv-8rh2/ (Markdown: https://insights.sbomify.com/GHSA-f36p-42jv-8rh2/index.md)","id":"GHSA-f36p-42jv-8rh2","markdown":"https://insights.sbomify.com/GHSA-f36p-42jv-8rh2/index.md","name":"GHSA-f36p-42jv-8rh2","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Java web framework","requires_auth":"none","summary":"An XSS vulnerability in the bundled Swagger-UI allows attackers to achieve remote code execution and exfiltrate secrets in applications using Lithium with Swagger enabled.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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### Patches\nThe used swagger-ui was updated by switching to the latest version of dropwizard-swagger in 8b9b406d608fe482ec0e7adf8705834bca92d7df\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### References\n* https://www.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers/\n\n### Credits\nWe thank [Mohit Kumar](https://www.linkedin.com/in/mohit-kumar-4ab6b3bb) for reporting this vulnerability!","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Lithium vulnerable to Cross Site Scripting in provided Swagger-UI","id":"GHSA-f36p-42jv-8rh2","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":[],"package":"com.wire.bots:lithium","purl":null,"source":"GHSA-f36p-42jv-8rh2"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":[],"package":"com.wire.bots:lithium","purl":"pkg:maven/com.wire.bots/lithium","source":"GHSA-f36p-42jv-8rh2"},{"ecosystem":"Maven","fixed":["3.4.2"],"introduced":["0"],"last_affected":[],"package":"com.wire:lithium","purl":null,"source":"GHSA-f36p-42jv-8rh2"},{"ecosystem":"Maven","fixed":["3.4.2"],"introduced":["0"],"last_affected":[],"package":"com.wire:lithium","purl":"pkg:maven/com.wire/lithium","source":"GHSA-f36p-42jv-8rh2"}],"products":null,"published":"2022-09-30","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An XSS vulnerability in the bundled Swagger-UI allows attackers to achieve remote code execution and exfiltrate secrets in applications using Lithium with Swagger enabled.","url":"https://insights.sbomify.com/GHSA-f36p-42jv-8rh2/"}