Cross-Site Scripting (XSS) Vulnerability in Universal Feed Parser

feedparser Updated 02 Oct 2025

Summary

11/04/2011
N/A
Yes i
Unrated
Not published

CVE-2009-5065: Cross-site scripting (XSS) vulnerability in feedparser.py in Universal Feed Parser (aka feedparser or python-feedparser) before 5.0 allows remote attackers to inject arbitrary web script or HTML via vectors involving nes... Affects feedparser versions < 5.0.1-1. Fixed in 5.0.1-1. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Universal Feed Parser (aka feedparser or python-feedparser) is an open-source Python library used for parsing RSS and Atom feeds. It provides a convenient way to extract and process data from various feed formats. However, versions prior to 5.0 are vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability, identified as CVE-2009-5065, allows remote attackers to inject arbitrary web script or HTML into the application. This occurs due to a lack of proper input sanitization in the feedparser.py module. Attackers can exploit this vulnerability by crafting malicious feed content with nested CDATA stanzas. When the feed is parsed, the injected script or HTML will be executed in the context of the victim's browser, potentially leading to session hijacking, data theft, or other malicious activities.

How To Fix

Minimum fixed version

5.0.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade feedparser

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

Workaround

If updating the library is not immediately feasible, a temporary workaround is to implement input sanitization on the feed content before parsing it with Universal Feed Parser. This can be done by using a HTML sanitizer library or implementing custom sanitization logic to remove or escape any potentially malicious script or HTML tags.

Conclusion

The cross-site scripting (XSS) vulnerability in Universal Feed Parser (feedparser.py) prior to version 5.0 allows remote attackers to inject arbitrary web script or HTML. To protect your application, it is crucial to update the library to the latest version or apply input sanitization on the feed content. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for feedparser →

Share this vulnerability

FAQ

Universal Feed Parser is a Python library used for parsing RSS and Atom feeds. It provides a convenient way to extract and process data from various feed formats.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts or HTML into web pages viewed by other users. This can lead to various attacks, such as session hijacking, data theft, or defacement.

The XSS vulnerability in Universal Feed Parser is caused by a lack of proper input sanitization in the feedparser.py module. Attackers can exploit this by crafting malicious feed content with nested CDATA stanzas, which will be executed in the victim's browser when the feed is parsed.

The consequences of this vulnerability include session hijacking, data theft, or other malicious activities. Attackers can execute arbitrary scripts or HTML in the context of the victim's browser, potentially compromising sensitive information or performing unauthorized actions.

To mitigate this vulnerability, it is recommended to update the Universal Feed Parser library to version 5.0.1-1 or later. If immediate update is not possible, implementing input sanitization on the feed content can serve as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for feedparser.

How To Fix

Minimum fixed version

5.0.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade feedparser

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