Vulnerabilities in pkg:maven/org.seleniumhq.selenium/selenium-grid
PACKAGECVE-2022-28108 is a HIGH (CVSS 8.8) selenium server (grid) csrf vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Selenium grid libraries in the Maven ecosystem. The issue involves selenium server (grid) csrf. Remediation is available by upgrading affected packages to version 4.0.0-alpha-7.
pkg:maven/org.seleniumhq.selenium/selenium-grid
Vulnerability advisories affecting package pkg:maven/org.seleniumhq.selenium/selenium-grid. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-h2rr-m97p-6jq9 | CVE-2022-28108 | HIGH | Selenium Server (Grid) CSRF |
CVE-2022-28108 at a Glance
Security Impact
CVSS: 8.8
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:H).
How to Fix CVE-2022-28108
To remediate this vulnerability, upgrade all affected Selenium grid 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>org.seleniumhq.selenium</groupId>
<artifactId>selenium-grid</artifactId>
<version>4.0.0-alpha-7</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</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=org.seleniumhq.selenium
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-28108, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.seleniumhq.selenium
Analyze the terminal output to locate any version of Selenium grid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0-alpha-7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.seleniumhq.selenium 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Selenium grid, 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-2022-28108 Affected Selenium grid Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.seleniumhq.selenium:selenium-grid
|
Maven |
< 4.0.0-alpha-7
|
4.0.0-alpha-7
|
|
org.seleniumhq.selenium:selenium-server
|
Maven |
≤ 4.0.0-alpha-2
|
|
References
Frequently Asked Questions
What is CVE-2022-28108?
Which Selenium grid versions are affected?
What version fixes CVE-2022-28108?
Is selenium-grid affected?
Is selenium-server affected?
What is the CVSS score of CVE-2022-28108?
What CWE is associated with CVE-2022-28108?
How can I check Maven dependencies for CVE-2022-28108?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h2rr-m97p-6jq9",
"modified" : "2025-04-02T13:51:40Z",
"published" : "2022-04-20T00:00:34Z",
"aliases" : [ "CVE-2022-28108" ],
"summary" : "Selenium Server (Grid) CSRF",
"details" : "Selenium Server (Grid) before 4.0.0-alpha-7 allows CSRF because it permits non-JSON content types such as application/x-www-form-urlencoded, multipart/form-data, and text/plain.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.seleniumhq.selenium:selenium-grid"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.0-alpha-7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.seleniumhq.selenium:selenium-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.0.0-alpha-2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-28108"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SeleniumHQ/selenium"
}, {
"type" : "WEB",
"url" : "https://www.gabriel.urdhr.fr/2022/02/07/selenium-standalone-server-csrf-dns-rebinding-rce"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2022/02/07/3"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2022/04/14/2"
}, {
"type" : "WEB",
"url" : "https://www.selenium.dev/downloads"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-22T20:22:09Z",
"nvd_published_at" : "2022-04-19T03:15:00Z"
}
}