CVE-2011-1157: Cross-Site Scripting Vulnerability in feedparser

feedparser Updated 02 Oct 2025

Summary

23/07/2018
Yes i
Moderate
6.1

CVE-2011-1157: feedparser Cross-site Scripting vulnerability. Affects feedparser versions >= 5.0, < 5.0.1. Fixed in 5.0.1. How to fix ↓

Also tracked for

The same CVE-2011-1157 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

feedparser is a Python package available on PyPI that provides functionality for parsing and handling RSS and Atom feeds. It is widely used in various applications to process and extract data from XML-based feeds. However, versions prior to 5.0.1 of feedparser are vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability (CVE-2011-1157) in feedparser.py allows remote attackers to inject arbitrary web script or HTML through malformed XML comments. This can lead to the execution of malicious code in the context of a user's browser, potentially compromising sensitive information or enabling further attacks. The issue arises due to insufficient input validation and sanitization of XML comments within the feedparser module.

How To Fix

Minimum fixed version

5.0.1

This is the first release that contains the fix.

pip install --upgrade "feedparser==5.0.1"

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

Workaround

There is no specific workaround mentioned for this vulnerability. However, as a general best practice, developers should always validate and sanitize user input to prevent the execution of malicious code. Implementing input validation and output encoding can help mitigate the risk of XSS attacks.

Conclusion

The cross-site scripting vulnerability in feedparser (CVE-2011-1157) poses a risk of remote code execution and potential compromise of sensitive information. To mitigate this vulnerability, it is crucial to upgrade to feedparser version 5.0.1 or later. Developers should also implement proper input validation and output encoding to prevent XSS attacks. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for feedparser →

Share this vulnerability

FAQ

The vulnerability allows attackers to inject arbitrary web script or HTML, potentially leading to the execution of malicious code in a user's browser. This can result in various consequences, such as unauthorized access to sensitive information, session hijacking, or the spread of malware.

No, only versions prior to 5.0.1 of feedparser are affected by this vulnerability. It is recommended to upgrade to the latest secure version to mitigate the risk.

While specific exploits for this vulnerability may exist, they have not been disclosed in the provided information. However, it is crucial to address the vulnerability promptly by applying the recommended fix to prevent potential exploitation.

Yes, this vulnerability can be exploited remotely. Attackers can inject malicious code through malformed XML comments in the feedparser module, and the code will be executed in the context of a user's browser when they access the affected application.

The provided information does not include a CVSS score for this vulnerability. However, given its moderate severity and the potential for remote code execution, it is advisable to address the issue promptly.

Related vulnerabilities

Recent vulnerabilities recorded for feedparser.

How To Fix

Minimum fixed version

5.0.1

This is the first release that contains the fix.

pip install --upgrade "feedparser==5.0.1"

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