GHSA-f36p-42jv-8rh2: Lithium Lithium Vulnerable To Cross Site Vulnerability
HIGHGHSA-f36p-42jv-8rh2 is a HIGH (CVSS 8.1) lithium vulnerable to cross site vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Lithium libraries in the Maven ecosystem. The issue involves lithium vulnerable to cross site scripting in provided swagger-ui. Remediation is available by upgrading affected packages to version 3.4.2.
GHSA-f36p-42jv-8rh2 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix GHSA-f36p-42jv-8rh2
To remediate this vulnerability, upgrade all affected Lithium dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.wire</groupId>
<artifactId>lithium</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>com.wire.bots</groupId>
<artifactId>lithium</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.wire
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-f36p-42jv-8rh2, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.wire
Analyze the terminal output to locate any version of Lithium in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.wire command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Lithium, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-f36p-42jv-8rh2 Affected Lithium Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.wire:lithium
|
Maven |
< 3.4.2
|
3.4.2
|
|
com.wire.bots:lithium
|
Maven |
|
|
References
Frequently Asked Questions
What is GHSA-f36p-42jv-8rh2?
Which Lithium versions are affected?
What version fixes GHSA-f36p-42jv-8rh2?
Is lithium affected?
What is the CVSS score of GHSA-f36p-42jv-8rh2?
What CWE is associated with GHSA-f36p-42jv-8rh2?
How can I check Maven dependencies for GHSA-f36p-42jv-8rh2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f36p-42jv-8rh2",
"modified" : "2022-10-05T22:00:04Z",
"published" : "2022-09-30T04:53:37Z",
"aliases" : [ ],
"summary" : "Lithium vulnerable to Cross Site Scripting in provided Swagger-UI",
"details" : "### 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!\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.wire:lithium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.wire.bots:lithium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.4.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wireapp/lithium/security/advisories/GHSA-f36p-42jv-8rh2"
}, {
"type" : "WEB",
"url" : "https://github.com/wireapp/lithium/commit/8b9b406d608fe482ec0e7adf8705834bca92d7df"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wireapp/lithium"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-09-30T04:53:37Z",
"nvd_published_at" : null
}
}