Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc4cTcteHY1Mi1oZjlm
Feedgen Vulnerable to XML Denial of Service Attacks
Impact
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.
Patches
This problem has been fixed in feedgen 0.9.0 which disallows XML entity expansion and external resources.
Workarounds
Updating 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.
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in lkiesow/python-feedgen
- Send an email to [email protected]
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc4cTcteHY1Mi1oZjlm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 5 years ago
Updated: about 2 months ago
CVSS Score: 4.4
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-g8q7-xv52-hf9f, CVE-2020-5227
References:
- https://github.com/lkiesow/python-feedgen/security/advisories/GHSA-g8q7-xv52-hf9f
- https://github.com/lkiesow/python-feedgen/commit/f57a01b20fa4aaaeccfa417f28e66b4084b9d0cf
- https://nvd.nist.gov/vuln/detail/CVE-2020-5227
- https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/november/xml-denial-of-service-attacks-and-defenses
- https://github.com/pypa/advisory-database/tree/main/vulns/feedgen/PYSEC-2020-231.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/T6I5ENUYGFNMIH6ZQ62FZ6VU2WD3SIOI
- https://github.com/advisories/GHSA-g8q7-xv52-hf9f
Blast Radius: 12.4
Affected Packages
pypi:feedgen
Dependent packages: 33Dependent repositories: 658
Downloads: 340,092 last month
Affected Version Ranges: < 0.9.0
Fixed in: 0.9.0
All affected versions: 0.2.1, 0.2.2, 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
All unaffected versions: 0.9.0, 1.0.0