# CVE-2021-25951: XML2Dict XML Entity Expansion Vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.17%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-30T11:42:24.000Z
- Modified: 2026-06-17T03:42:39.847Z
- Also known as: GHSA-gp6m-vqhm-5cm5, PYSEC-2021-349
- Weaknesses: CWE-611, CWE-776
- Assigned by: Mend

## Description

XXE vulnerability in 'XML2Dict' version 0.2.2 allows an attacker to cause a denial of service.

(As written by CVE List.)

## Affected

- XML2Dict: 0.2.2
- xml2dict (PyPI): up to 0.2.2; all versions
- xml2dict_project xml2dict: 0.2.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25951> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25951> (advisory)
- <https://github.com/mcspring/XML2Dict/tree/master> (web)
- <https://github.com/mcspring/xml2dict> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/xml2dict/PYSEC-2021-349.yaml> (web)
- <https://pypi.org/project/XML2Dict> (web)
- <https://github.com/advisories/GHSA-gp6m-vqhm-5cm5> (advisory)

## Sources

- CVE List: [CVE-2021-25951](https://www.cve.org/CVERecord?id=CVE-2021-25951), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-gp6m-vqhm-5cm5](https://github.com/advisories/GHSA-gp6m-vqhm-5cm5), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2021-25951](https://nvd.nist.gov/vuln/detail/CVE-2021-25951), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-349](https://osv.dev/vulnerability/PYSEC-2021-349), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-25951 · Whole record: https://cve.day/CVE-2021-25951.json · Rebuilt by cve.day 2026-11-25T22:58:02.390Z
