{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-gateway. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-22051 in the wild and no public exploit code.","fix":"Upgrade org.springframework.cloud:spring-cloud-gateway to a fixed version for your release line: 2.2.10.RELEASE0.5 or 3.0.5.","what":"CVE-2021-22051 is a medium-severity server-side request forgery vulnerability in Spring Cloud Gateway, published on 8 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22051 and fix it if it is affected.\n\nWhat it is: CVE-2021-22051 is a medium-severity server-side request forgery vulnerability in Spring Cloud Gateway, published on 8 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22051 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected from 2.2.0; fixed in 2.2.10.RELEASE0.5\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected from 2.2.0; fixed in 2.2.10.RELEASE0.5\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected from 3.0.0; fixed in 3.0.5\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected from 3.0.0; fixed in 3.0.5\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-2021-22051/ (Markdown: https://insights.sbomify.com/CVE-2021-22051/index.md)","id":"CVE-2021-22051","markdown":"https://insights.sbomify.com/CVE-2021-22051/index.md","name":"CVE-2021-22051","record":{"aliases":["GHSA-2r2v-q399-qq93"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Cloud Gateway","requires_auth":"low_privilege","summary":"Attackers can force Spring Cloud Gateway to make unauthorized requests to downstream services, potentially accessing internal resources.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_cloud_gateway","vendor":"vmware"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"Applications using Spring Cloud Gateway are vulnerable to specifically crafted requests that could make an extra request on downstream services. Users of affected versions should apply the following mitigation: 3.0.x users should upgrade to 3.0.5+, 2.2.x users should upgrade to 2.2.10.RELEASE or newer.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Request injection in Spring Cloud Gateway","id":"CVE-2021-22051","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"ssrf","year":"2021"},"n_packages":4,"n_references":1,"next":{"headline":"Code injection in spring-cloud-netflix-hystrix-dashboard","id":"CVE-2021-22053"},"packages":[{"ecosystem":"Maven","fixed":["2.2.10.RELEASE0.5"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":null,"source":"GHSA-2r2v-q399-qq93"},{"ecosystem":"Maven","fixed":["2.2.10.RELEASE0.5"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway","source":"GHSA-2r2v-q399-qq93"},{"ecosystem":"Maven","fixed":["3.0.5"],"introduced":["3.0.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":null,"source":"GHSA-2r2v-q399-qq93"},{"ecosystem":"Maven","fixed":["3.0.5"],"introduced":["3.0.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway","source":"GHSA-2r2v-q399-qq93"}],"prev":{"headline":"Denial of service in VMware ESXi and VMware Cloud Foundation","id":"CVE-2021-22050"},"products":["Spring Cloud Gateway"],"published":"2021-11-08","related":[{"cvss_score":8.6,"headline":"Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies in certain situations","id":"CVE-2026-47825","kev_date_added":null,"published":"2026-06-15"},{"cvss_score":7.7,"headline":"Spring Cloud Gateway SSRF and native file access with gRPC","id":"CVE-2026-47879","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":7.5,"headline":"SSL bundle configuration silently bypassed in Spring Cloud Gateway","id":"CVE-2026-22750","kev_date_added":null,"published":"2026-04-10"}],"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":"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can force Spring Cloud Gateway to make unauthorized requests to downstream services, potentially accessing internal resources.","url":"https://insights.sbomify.com/CVE-2021-22051/"}