Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. feedgen
  4. ›
  5. CVE-2020-5227

CVE-2020-5227: Feedgen Vulnerable to XML Denial of Service Attacks

January 28, 2020 (updated September 20, 2024)

The feedgen library allows supplying XML as content for some of the available fields. This XML will be parsed and integrated into the existing XML tree. During this process, feedgen is vulnerable to XML Denial of Service Attacks (e.g. XML Bomb).

This becomes a concern in particular if feedgen is used to include content from untrused sources and if XML (including XHTML) is directly included instead of providing plain tex content only.

References

  • docs.microsoft.com/en-us/archive/msdn-magazine/2009/november/xml-denial-of-service-attacks-and-defenses
  • github.com/advisories/GHSA-g8q7-xv52-hf9f
  • github.com/lkiesow/python-feedgen
  • github.com/lkiesow/python-feedgen/commit/f57a01b20fa4aaaeccfa417f28e66b4084b9d0cf
  • github.com/lkiesow/python-feedgen/security/advisories/GHSA-g8q7-xv52-hf9f
  • github.com/pypa/advisory-database/tree/main/vulns/feedgen/PYSEC-2020-231.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T6I5ENUYGFNMIH6ZQ62FZ6VU2WD3SIOI
  • nvd.nist.gov/vuln/detail/CVE-2020-5227

Code Behaviors & Features

Detect and mitigate CVE-2020-5227 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 before 0.9.0

Fixed versions

  • 0.9.0

Solution

Upgrade to version 0.9.0 or above.

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-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

pypi/feedgen/CVE-2020-5227.yml

Spotted a mistake? Edit the file on GitLab.

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

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