Skip to content

Feedgen Vulnerable to XML Denial of Service Attacks

High severity GitHub Reviewed Published Jan 28, 2020 in lkiesow/python-feedgen • Updated Jan 9, 2023

Package

pip feedgen (pip)

Affected versions

< 0.9.0

Patched versions

0.9.0

Description

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:

References

@lkiesow lkiesow published to lkiesow/python-feedgen Jan 28, 2020
Reviewed Jan 28, 2020
Published to the GitHub Advisory Database Jan 28, 2020
Last updated Jan 9, 2023

Severity

High

Weaknesses

CVE ID

CVE-2020-5227

GHSA ID

GHSA-g8q7-xv52-hf9f

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.