{"id":"GHSA-g8q7-xv52-hf9f","summary":"Feedgen Vulnerable to XML Denial of Service Attacks","details":"### Impact\n\nThe *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](https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/november/xml-denial-of-service-attacks-and-defenses) (e.g. XML Bomb).\n\nThis 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.\n\n### Patches\n\nThis problem has been fixed in feedgen 0.9.0 which disallows XML entity expansion and external resources.\n\n### Workarounds\n\nUpdating is strongly recommended and should not be problematic. Nevertheless, as a workaround, avoid providing XML directly to feedgen or ensure that no entity expansion is part of the XML. \n\n### References\n\n- [Security Briefs - XML Denial of Service Attacks and Defenses](https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/november/xml-denial-of-service-attacks-and-defenses)\n- [Billion laughs attack](https://en.wikipedia.org/wiki/Billion_laughs_attack#cite_note-2)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n- Open an issue in [lkiesow/python-feedgen](https://github.com/lkiesow/python-feedgen/issues)\n- Send an email to security@lkiesow.de","aliases":["CVE-2020-5227","PYSEC-2020-231"],"modified":"2026-03-13T22:00:59.048160Z","published":"2020-01-28T22:37:50Z","related":["CVE-2020-5227"],"database_specific":{"severity":"MODERATE","nvd_published_at":null,"cwe_ids":["CWE-776"],"github_reviewed_at":"2020-01-28T22:34:51Z","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/lkiesow/python-feedgen/security/advisories/GHSA-g8q7-xv52-hf9f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5227"},{"type":"WEB","url":"https://github.com/lkiesow/python-feedgen/commit/f57a01b20fa4aaaeccfa417f28e66b4084b9d0cf"},{"type":"WEB","url":"https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/november/xml-denial-of-service-attacks-and-defenses"},{"type":"PACKAGE","url":"https://github.com/lkiesow/python-feedgen"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/feedgen/PYSEC-2020-231.yaml"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T6I5ENUYGFNMIH6ZQ62FZ6VU2WD3SIOI"}],"affected":[{"package":{"name":"feedgen","ecosystem":"PyPI","purl":"pkg:pypi/feedgen"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.0"}]}],"versions":["0.1","0.2","0.2.1","0.2.2","0.2.2.1","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.5.0","0.5.1","0.6.0","0.6.1","0.7.0","0.8.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/01/GHSA-g8q7-xv52-hf9f/GHSA-g8q7-xv52-hf9f.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}