Vulnerabilities in pkg:maven/org.seleniumhq.selenium/selenium-grid

PACKAGE
Advisory Identifier: GHSA-h2rr-m97p-6jq9
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.seleniumhq.selenium/selenium-grid

1 Known Advisory Record(s)

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

CVE Identifier CVE-2022-28108
GHSA Identifier GHSA-h2rr-m97p-6jq9
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Selenium grid
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

org.seleniumhq.selenium:selenium-grid fixed: 4.0.0-alpha-7
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-grid</artifactId>
    <version>4.0.0-alpha-7</version>
</dependency>
org.seleniumhq.selenium:selenium-server fixed: Latest secure release
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-server</artifactId>
    <version>Latest secure release</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=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

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.

CVE-2022-28108 Affected Selenium grid Versions

2 component(s)
Fixed Versions:
4.0.0-alpha-7
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?
CVE-2022-28108 is a security vulnerability in Selenium grid involving Selenium Server (Grid) CSRF under CWE-352: Cross-Site Request Forgery (CSRF).
Which Selenium grid versions are affected?
Affected versions include releases prior to 4.0.0-alpha-7 across affected packages: org.seleniumhq.selenium:selenium-grid, org.seleniumhq.selenium:selenium-server.
What version fixes CVE-2022-28108?
Upgrading to 4.0.0-alpha-7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is selenium-grid affected?
Yes, org.seleniumhq.selenium:selenium-grid is affected in releases prior to 4.0.0-alpha-7. Upgrade your dependency to 4.0.0-alpha-7 or later.
Is selenium-server affected?
Yes, org.seleniumhq.selenium:selenium-server is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-28108?
CVE-2022-28108 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-28108?
CVE-2022-28108 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (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.).
How can I check Maven dependencies for CVE-2022-28108?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.seleniumhq.selenium'. 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-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"
  }
}