CVE-2025-4641: Webdrivermanager BoniGarcia WebDriverManager Affected By Improper Vulnerability
CRITICALCVE-2025-4641 is a CRITICAL bonigarcia webdrivermanager affected by improper vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Webdrivermanager libraries in the Maven ecosystem. The issue involves bonigarcia webdrivermanager affected by improper restriction of xml external entity reference. Remediation is available by upgrading affected packages to version 6.1.0.
CVE-2025-4641 at a Glance
How to Fix CVE-2025-4641
To remediate this vulnerability, upgrade all affected Webdrivermanager 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>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>6.1.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.github.bonigarcia
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-4641, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.github.bonigarcia
Analyze the terminal output to locate any version of Webdrivermanager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.github.bonigarcia 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Webdrivermanager, 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
CVE-2025-4641 Affected Webdrivermanager Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.github.bonigarcia:webdrivermanager
|
Maven |
≥ 1.0.0
< 6.1.0
|
6.1.0
|
References
Frequently Asked Questions
What is CVE-2025-4641?
Which Webdrivermanager versions are affected?
What version fixes CVE-2025-4641?
Is webdrivermanager affected?
What CWE is associated with CVE-2025-4641?
How can I check Maven dependencies for CVE-2025-4641?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pwm3-776c-8q7q",
"modified" : "2025-05-15T17:28:16Z",
"published" : "2025-05-14T21:31:18Z",
"aliases" : [ "CVE-2025-4641" ],
"summary" : "BoniGarcia WebDriverManager Affected By Improper Restriction of XML External Entity Reference",
"details" : "Improper Restriction of XML External Entity Reference vulnerability in bonigarcia webdrivermanager on Windows, MacOS, Linux (XML parsing components modules) allows Data Serialization External Entities Blowup. This vulnerability is associated with program files src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java.\n\nThis issue affects webdrivermanager: from 1.0.0 before 6.1.0.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:H/SC:H/SI:L/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.github.bonigarcia:webdrivermanager"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "6.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-4641"
}, {
"type" : "WEB",
"url" : "https://github.com/bonigarcia/webdrivermanager/pull/1458"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bonigarcia/webdrivermanager"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-15T17:27:58Z",
"nvd_published_at" : "2025-05-14T19:15:53Z"
}
}