Vulnerability · Published Jan 28, 2020 · Assigned by GitHub_M
CVE-2020-5227Feedgen Vulnerable to XML Denial of Service Attacks
Medium 4.4
In plain English
A medium-severity security flaw in python-feedgen from lkiesow. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Feedgen (python feedgen) before 0.9.0 is susceptible to XML Denial of Service attacks. 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. This problem has been fixed in feedgen 0.9.0 which disallows XML entity expansion and external resources.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | feedgen | 0.9.0 | GHSA-g8q7-xv52-hf9f |
| PyPI | feedgen | 0.9.0 | PYSEC-2020-231 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| lkiesow | python-feedgen | < 0.9.0 |
Weakness: CWE-776 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/lkiesow/python-feedgen/security/advisories/GHSA-g8q7-xv52-hf9f x_refsource_CONFIRM
- https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/november/xml-denial-of-service-attacks-and-defenses x_refsource_MISC
- https://github.com/lkiesow/python-feedgen/commit/f57a01b20fa4aaaeccfa417f28e66b4084b9d0cf x_refsource_MISC
- FEDORA-2020-8493201e90 vendor-advisory, x_refsource_FEDORA