{"answers":{"affected":"3 open source packages ship an affected version, including swift. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-50221 in the wild and no public exploit code.","fix":"Upgrade swift to 2.37.2 or later.","what":"CVE-2026-50221 is a medium-severity server-side request forgery vulnerability in OpenStack Swift, published on 23 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-50221 and fix it if it is affected.\n\nWhat it is: CVE-2026-50221 is a medium-severity server-side request forgery vulnerability in OpenStack Swift, published on 23 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-50221 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- swift (PyPI): affected all versions; fixed in 2.37.2\n- swift (PyPI): affected all versions; fixed in 2.37.2\n- swift (PyPI): affected all versions; fixed in 2.37.2\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-2026-50221/ (Markdown: https://insights.sbomify.com/CVE-2026-50221/index.md)","id":"CVE-2026-50221","markdown":"https://insights.sbomify.com/CVE-2026-50221/index.md","name":"CVE-2026-50221","record":{"aliases":["DEBIAN-CVE-2026-50221","GHSA-h8rc-w822-q8vq","PYSEC-2026-4173","UBUNTU-CVE-2026-50221"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenStack Swift","requires_auth":"low_privilege","summary":"Authenticated users can inject headers to trigger SSRF, exposing internal cluster metadata and encryption details in OpenStack Swift.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"swift","vendor":"openstack"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"In OpenStack Swift before 2.37.2, proxy-server does not strip internal update headers (X-Container-Host, X-Container-Device, X-Delete-At-Host, X-Delete-At-Device) from client requests before forwarding them to object-servers. An authenticated user with write access can inject these headers to redirect container update requests to an attacker-controlled server, enabling server-side request forgery. The SSRF requests expose internal cluster metadata including storage policy indexes, partition mappings, device names, and when at rest encryption is enabled, cipher text and initialization vectors for the container-level encryption key. The attacker can also cause \"ghost listings\" in arbitrary containers via the shard-range redirect mechanism.","ecosystems":["PyPI"],"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":"OpenStack Swift vulnerable to authenticated server-side request forgery","id":"CVE-2026-50221","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Apache CloudStack: Improper access control in Userdata reference APIs","id":"CVE-2026-50222"},"packages":[{"ecosystem":"PyPI","fixed":["2.37.2"],"introduced":["0"],"last_affected":[],"package":"swift","purl":null,"source":"GHSA-h8rc-w822-q8vq"},{"ecosystem":"PyPI","fixed":["2.37.2"],"introduced":["0"],"last_affected":[],"package":"swift","purl":"pkg:pypi/swift","source":"GHSA-h8rc-w822-q8vq"},{"ecosystem":"PyPI","fixed":["2.37.2"],"introduced":["0"],"last_affected":[],"package":"swift","purl":"pkg:pypi/swift","source":"PYSEC-2026-4173"}],"prev":{"headline":"Use after free in libexpat","id":"CVE-2026-50219"},"products":["Swift"],"published":"2026-06-23","related":[{"cvss_score":7.5,"headline":"OpenStack Object Storage (Swift) allows remote attackers to cause a denial of service","id":"CVE-2016-0737","kev_date_added":null,"published":"2016-01-29"},{"cvss_score":7.5,"headline":"OpenStack Object Storage (Swift) allows remote attackers to cause a denial of service","id":"CVE-2016-0738","kev_date_added":null,"published":"2016-01-29"},{"cvss_score":7.1,"headline":"OpenStack Swift: s3api middleware enters an infinite loop when processing a truncated aws-chunked PUT request body","id":"CVE-2026-49017","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":5.8,"headline":"Python Swift client is vulnerable to Missing SSL Certificate Check","id":"CVE-2013-6396","kev_date_added":null,"published":"2014-02-18"},{"cvss_score":5,"headline":"OpenStack Object Storage (Swift) Sensitive Data Exposure","id":"CVE-2015-5223","kev_date_added":null,"published":"2015-10-26"},{"cvss_score":4.3,"headline":"Temporary urls leaked via logging","id":"CVE-2017-8761","kev_date_added":null,"published":"2021-06-02"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["OpenStack"]},"summary":"Authenticated users can inject headers to trigger SSRF, exposing internal cluster metadata and encryption details in OpenStack Swift.","url":"https://insights.sbomify.com/CVE-2026-50221/"}