# CVE-2022-28108: Selenium Server (Grid) CSRF

Source: https://junglewise.ai/threats/cve-2022-28108-pysec-2022-43167-selenium-server-grid-before-4-allows-csrf  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-04-20  
License: CC BY 4.0 with a link back

CVE-2022-28108 · Severity: low · CVSS 3.1 · Published 2022-04-20

Selenium Server (Grid) CSRF

Technologies: [selenium (PyPI)](https://junglewise.ai/threats/technologies/selenium). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-28108 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-28108 being exploited in the wild.

**How severe is CVE-2022-28108?** Low severity, with a CVSS score of 3.1, published 20 April 2022.

**Which products and versions are affected?** org.seleniumhq.selenium:selenium-grid (Maven) ECOSYSTEM:introduced=0,fixed=4.0.0-alpha-7; org.seleniumhq.selenium:selenium-server (Maven) ECOSYSTEM:introduced=0,last_affected=4.0.0-alpha-2; selenium (PyPI) ECOSYSTEM:introduced=0,fixed=4.0.0.

**Is there a fix for CVE-2022-28108?** Yes. org.seleniumhq.selenium:selenium-grid (Maven): upgrade to 4.0.0-alpha-7 or later; selenium (PyPI): upgrade to 4.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-28108?** Check whether you run org.seleniumhq.selenium:selenium-grid (Maven), org.seleniumhq.selenium:selenium-server (Maven) or selenium (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.seleniumhq.selenium:selenium-grid (Maven): upgrade to 4.0.0-alpha-7 or later

  ```sh
  # set org.seleniumhq.selenium:selenium-grid to 4.0.0-alpha-7 in your pom.xml or build.gradle
  ```

- selenium (PyPI): upgrade to 4.0.0 or later

  ```sh
  pip install "selenium>=4.0.0"
  ```


## Affected products

- org.seleniumhq.selenium:selenium-grid (Maven) ECOSYSTEM:introduced=0,fixed=4.0.0-alpha-7
- org.seleniumhq.selenium:selenium-server (Maven) ECOSYSTEM:introduced=0,last_affected=4.0.0-alpha-2
- selenium (PyPI) ECOSYSTEM:introduced=0,fixed=4.0.0

## Identifiers

- CVE-2022-28108
- GHSA-h2rr-m97p-6jq9
- PYSEC-2022-43167

## Related threats

- [PYSEC-2023-206 - NULL Pointer Dereference in GitHub repository seleniumhq/selenium prior to 4.14.0.](https://junglewise.ai/threats/cve-2023-5590-pysec-2023-206-null-pointer-dereference-in-github-repository)
- [PYSEC-2023-101 - A cross-site scripting (XSS) vulnerability in Selenium Grid v3.141.59 allows attackers to execute…](https://junglewise.ai/threats/pysec-2023-101-a-cross-site-scripting-xss-vulnerability-in-selenium-d72e7456)
