VDB
Sign up
MEDIUM6.5

PYSEC-2026-927

OpenStack Swift XML external entities (XXE) Injection

Quick fix

PYSEC-2026-927 — swift: upgrade to the fixed version with the command below.

pip install --upgrade 'swift>=2.28.1'

Details

An issue was discovered in OpenStack Swift before 2.28.1, 2.29.x before 2.29.2, and 2.30.0. By supplying crafted XML files, an authenticated user may coerce the S3 API into returning arbitrary file contents from the host server, resulting in unauthorized read access to potentially sensitive data. This impacts both s3api deployments (Rocky or later), and swift3 deployments (Queens and earlier, no longer actively developed).

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/swift
Introduced in: 0Fixed in: 2.28.1
Fixpip install --upgrade 'swift>=2.28.1'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/swift"]}'