# OpenStack Swift XML external entities (XXE) Injection

Advisory record · `GHSA-274c-rx2j-2v3x`

- **Identifiers:** `GHSA-274c-rx2j-2v3x` · `CVE-2022-47950` · `PYSEC-2026-927`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-552](https://cwe.mitre.org/data/definitions/552.html) · [CWE-611](https://cwe.mitre.org/data/definitions/611.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md) · [XML external entities (XXE)](https://agentprime.io/advisories/tag/xxe.md)
- **Published:** 18 Jan 2023
- **Updated:** 7 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Jan 2023, 18:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `swift` (PyPI): affected `<2.28.1 || >=2.29.0, <2.29.2 || >=2.30.0, <2.30.1`; fixed in `2.28.1`, `2.29.2`, `2.30.1`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.5 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.010, the 63rd percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 18 Jan 2023. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-274c-rx2j-2v3x](https://github.com/advisories/GHSA-274c-rx2j-2v3x)
- [OSV: GHSA-274c-rx2j-2v3x](https://osv.dev/vulnerability/GHSA-274c-rx2j-2v3x)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-47950>
- <https://github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640>
- <https://github.com/openstack/swift/commit/7d13d1a82e1f5d01205a13184907501b4fcbe2b0>
- <https://github.com/openstack/swift/commit/8dd96470a859dc7b189404fb67bd3899ae9c617f>
- <https://github.com/openstack/swift/commit/b8467e190f6fc67fd8fb6a8c5e32b2aa6a10fd8e>
- <https://github.com/openstack/swift/commit/baa98848451b5c234443a068691e12841a5a8383>
- <https://github.com/openstack/swift/commit/c834e7a53d5a33a3fd13ffd954e6f4f4ee953dfc>
- <https://github.com/openstack/swift/commit/d8d04ef43c90079d436b2e49617b4425ba39c28e>
- <https://github.com/openstack/swift/commit/f10672514217adadfc776d9ea2ffb20a37ce073b>
- <https://github.com/openstack/swift>
- <https://launchpad.net/bugs/1998625>
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00021.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-274c-rx2j-2v3x>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-274c-rx2j-2v3x/>. Everything for agents: <https://agentprime.io/llms.txt>.
