Vulnerabilities in pkg:maven/io.github.bonigarcia/webdrivermanager

PACKAGE
Advisory Identifier: GHSA-pwm3-776c-8q7q
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.github.bonigarcia/webdrivermanager

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.github.bonigarcia/webdrivermanager. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pwm3-776c-8q7q CVE-2025-4641 CRITICAL BoniGarcia WebDriverManager Affected By Improper Restriction of XML External Entity Reference

CVE-2025-4641 at a Glance

CVE Identifier CVE-2025-4641
GHSA Identifier GHSA-pwm3-776c-8q7q
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Webdrivermanager
Package Ecosystem Maven
Published Date
Last Updated

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.

io.github.bonigarcia:webdrivermanager fixed: 6.1.0
<dependency>
    <groupId>io.github.bonigarcia</groupId>
    <artifactId>webdrivermanager</artifactId>
    <version>6.1.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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. This issue affects webdrivermanager: from 1.0.0 before 6.1.0.

CVE-2025-4641 Affected Webdrivermanager Versions

1 component(s)
Fixed Versions:
6.1.0
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?
CVE-2025-4641 is a security vulnerability in Webdrivermanager involving BoniGarcia WebDriverManager Affected By Improper Restriction of XML External Entity Reference under CWE-611: Improper Restriction of XML External Entity Reference.
Which Webdrivermanager versions are affected?
Affected versions include releases prior to 6.1.0 across affected packages: io.github.bonigarcia:webdrivermanager.
What version fixes CVE-2025-4641?
Upgrading to 6.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is webdrivermanager affected?
Yes, io.github.bonigarcia:webdrivermanager is affected in releases prior to 6.1.0. Upgrade your dependency to 6.1.0 or later.
What CWE is associated with CVE-2025-4641?
CVE-2025-4641 is classified under CWE-611: Improper Restriction of XML External Entity Reference (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.).
How can I check Maven dependencies for CVE-2025-4641?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.github.bonigarcia'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}