CVE-2026-50221: Swift OpenStack Swift Vulnerable To Authenticated Vulnerability
MODERATECVE-2026-50221 is a MODERATE (CVSS 5.4) openstack swift vulnerable to authenticated vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Swift libraries in the PyPI ecosystem. The issue involves openstack swift vulnerable to authenticated server-side request forgery. Remediation is available by upgrading affected packages to version 2.37.2.
CVE-2026-50221 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-50221
To remediate this vulnerability, upgrade all affected Swift dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install swift>=2.37.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show swift
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-50221, inspect your installed packages using pip:
pip show swift
Analyze the terminal output to locate any version of Swift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.37.2), your application is affected.
Note: The pip show swift command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Swift, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-50221 Affected Swift Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
swift
|
PyPI |
< 2.37.2
|
2.37.2
|
References
Frequently Asked Questions
What is CVE-2026-50221?
Which Swift versions are affected?
What version fixes CVE-2026-50221?
Is swift affected?
What is the CVSS score of CVE-2026-50221?
What CWE is associated with CVE-2026-50221?
How can I check PyPI dependencies for CVE-2026-50221?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h8rc-w822-q8vq",
"modified" : "2026-09-24T19:02:20Z",
"published" : "2026-06-23T18:31:44Z",
"aliases" : [ "CVE-2026-50221" ],
"summary" : "OpenStack Swift vulnerable to authenticated server-side request forgery",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "swift"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.37.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50221"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13"
}, {
"type" : "WEB",
"url" : "https://launchpad.net/bugs/2150261"
}, {
"type" : "WEB",
"url" : "https://opendev.org/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13"
}, {
"type" : "WEB",
"url" : "https://security.openstack.org/ossa/OSSA-2026-024.html"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2026/06/23/5"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/06/23/5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-24T19:02:19Z",
"nvd_published_at" : "2026-06-23T18:18:04Z"
}
}