{"answers":{"affected":"5 open source packages ship an affected version, including org.seleniumhq.selenium:selenium-grid, org.seleniumhq.selenium:selenium-server and selenium. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-28108 exists.","fix":"Upgrade org.seleniumhq.selenium:selenium-grid to 4.0.0-alpha-7 or later.","what":"CVE-2022-28108 is a high-severity vulnerability in n/a, published on 19 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-28108 and fix it if it is affected.\n\nWhat it is: CVE-2022-28108 is a high-severity vulnerability in n/a, published on 19 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-28108 exists.\n\nAffected packages and fixed versions:\n- org.seleniumhq.selenium:selenium-grid (Maven): affected all versions; fixed in 4.0.0-alpha-7\n- org.seleniumhq.selenium:selenium-grid (Maven): affected all versions; fixed in 4.0.0-alpha-7\n- org.seleniumhq.selenium:selenium-server (Maven): affected all versions up to 4.0.0-alpha-2; no fix listed\n- org.seleniumhq.selenium:selenium-server (Maven): affected all versions up to 4.0.0-alpha-2; no fix listed\n- selenium (PyPI): affected all versions; fixed in 4.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-28108/ (Markdown: https://insights.sbomify.com/CVE-2022-28108/index.md)","id":"CVE-2022-28108","markdown":"https://insights.sbomify.com/CVE-2022-28108/index.md","name":"CVE-2022-28108","record":{"aliases":["GHSA-h2rr-m97p-6jq9","PYSEC-2022-43167"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Selenium Grid Server","requires_auth":"none","summary":"Attackers can perform cross-site request forgery against Selenium Grid by exploiting its acceptance of non-JSON content types.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"selenium_grid","vendor":"selenium"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"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.","ecosystems":["Maven","PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2022/CVE-2022-28108.yaml","stars":null,"title":"Selenium Grid \u003c 4.0.0-alpha-7 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Selenium Server (Grid) CSRF","id":"CVE-2022-28108","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"csrf","year":"2022"},"n_packages":5,"n_references":3,"next":{"headline":"Server-side request forgery in n/a","id":"CVE-2022-28109"},"packages":[{"ecosystem":"Maven","fixed":["4.0.0-alpha-7"],"introduced":["0"],"last_affected":[],"package":"org.seleniumhq.selenium:selenium-grid","purl":null,"source":"GHSA-h2rr-m97p-6jq9"},{"ecosystem":"Maven","fixed":["4.0.0-alpha-7"],"introduced":["0"],"last_affected":[],"package":"org.seleniumhq.selenium:selenium-grid","purl":"pkg:maven/org.seleniumhq.selenium/selenium-grid","source":"GHSA-h2rr-m97p-6jq9"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["4.0.0-alpha-2"],"package":"org.seleniumhq.selenium:selenium-server","purl":null,"source":"GHSA-h2rr-m97p-6jq9"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["4.0.0-alpha-2"],"package":"org.seleniumhq.selenium:selenium-server","purl":"pkg:maven/org.seleniumhq.selenium/selenium-server","source":"GHSA-h2rr-m97p-6jq9"},{"ecosystem":"PyPI","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"selenium","purl":"pkg:pypi/selenium","source":"PYSEC-2022-43167"}],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2022-28106"},"products":["n/a"],"published":"2022-04-19","related":[{"cvss_score":8.8,"headline":"Server-side request forgery in n/a","id":"CVE-2022-28109","kev_date_added":null,"published":"2022-04-15"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2020-23452","kev_date_added":null,"published":"2023-07-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can perform cross-site request forgery against Selenium Grid by exploiting its acceptance of non-JSON content types.","url":"https://insights.sbomify.com/CVE-2022-28108/"}