CVE-2012-2921: Vulnerability in feedparser

feedparser Updated 02 Oct 2025

Summary

24/07/2018
Yes i
High
7.5

CVE-2012-2921: feedparser denial of service vulnerability. Affects feedparser versions < 5.1.2. Fixed in 5.1.2. How to fix ↓

Also tracked for

The same CVE-2012-2921 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Feedparser is a Python library used for parsing RSS and Atom feeds. It provides a convenient way to extract and process data from these types of feeds. However, versions before 5.1.2 are vulnerable to a moderate severity issue that can lead to a denial of service attack. This vulnerability arises from a flaw in handling XML ENTITY declarations in non-ASCII encoded documents.

Vulnerability Detail

The vulnerability in feedparser allows remote attackers to consume excessive memory, leading to a denial of service. By crafting a malicious XML ENTITY declaration in a non-ASCII encoded document, an attacker can trigger the vulnerability and cause the application to consume an excessive amount of memory. This can result in the application becoming unresponsive or crashing, impacting the availability of the service.

How To Fix

Minimum fixed version

5.1.2

This is the first release that contains the fix.

pip install --upgrade "feedparser==5.1.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is necessary to update to the fixed version of feedparser to mitigate the risk.

Conclusion

In conclusion, the vulnerability in feedparser can be mitigated by updating to version 5.1.2 or later. This will ensure that the application is no longer susceptible to the memory consumption issue caused by the crafted XML ENTITY declaration. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for feedparser →

Share this vulnerability

FAQ

Feedparser is a Python library used for parsing RSS and Atom feeds. It allows developers to extract and process data from these types of feeds.

The vulnerability can lead to a denial of service attack by causing excessive memory consumption. This can result in the application becoming unresponsive or crashing.

To fix this vulnerability, update to feedparser version 5.1.2 or later.

No, there is no known workaround for this vulnerability. Updating to the fixed version is necessary.

Related vulnerabilities

Recent vulnerabilities recorded for feedparser.

How To Fix

Minimum fixed version

5.1.2

This is the first release that contains the fix.

pip install --upgrade "feedparser==5.1.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback