SSRF (Server-Side Request Forgery) in swift
Summary
SSRF in swift (CVE-2026-50221). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to 2.37.2 or later.
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-50221 has been found in swift.
Risk of unauthorized operations or information disclosure. CVSS score: 5.4/10.
What to do: upgrade swift to 2.37.2 or later.
If unsure, ask your IT team or search "swift CVE-2026-50221" on the vendor's site.
CVE-2026-50221 (swift) — CWE-918 / CVSS v3 5.4
Attack vector: remote (network-reachable) / no user interaction
Patched: 2.37.2 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
SSRF (CWE-918) exists in swift.
Check the vendor advisory for the affected versions of swift.
Severity: Medium (CVSS 5.4/10). Risk of unauthorized operations or information disclosure.
Update to 2.37.2.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'swift' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'swift' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
swiftを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade swift to 2.37.2ステージング環境で 2.37.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipswift |
< 2.37.2→ 2.37.2 |
2.37.2 |
| PyPIswift |
< 2.37.2→ 2.37.2 |
2.37.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-50221 swift Fix available
- Ubuntu UBUNTU-CVE-2026-50221 swift No fixed version in this record
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- advisory github.com
- package pypi.org
- report launchpad.net
- web security.openstack.org
- web openwall.com
- web openwall.com
- web github.com
- web opendev.org
- web opendev.org