Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. XML2Dict
  4. ›
  5. CVE-2021-25951

CVE-2021-25951: XML2Dict XML Entity Expansion Vulnerability

July 2, 2021 (updated November 19, 2024)

XXE vulnerability in ‘XML2Dict’ version 0.2.2 allows an attacker to cause a denial of service. The parse function does not properly restrict recursive entity references.

References

  • github.com/advisories/GHSA-gp6m-vqhm-5cm5
  • github.com/mcspring/XML2Dict/tree/master
  • github.com/mcspring/xml2dict
  • github.com/pypa/advisory-database/tree/main/vulns/xml2dict/PYSEC-2021-349.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-25951
  • pypi.org/project/XML2Dict
  • www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25951

Code Behaviors & Features

Detect and mitigate CVE-2021-25951 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.2.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference
  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

pypi/XML2Dict/CVE-2021-25951.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:55 +0000.