CVE-2011-1157 feedparser Cross-site Scripting vulnerability
Remote attackers can inject arbitrary web script or HTML via malformed XML comments in the Universal Feed Parser library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2011-1157?
CVE-2011-1157 is a medium-severity cross-site scripting vulnerability in n/a, published on 11 Apr 2011. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site scripting (XSS) vulnerability in feedparser.py in Universal Feed Parser (aka feedparser or python-feedparser) 5.x before 5.0.1 allows remote attackers to inject arbitrary web script or HTML via malformed XML comments.
Weakness: CWE-79
Which versions are affected by CVE-2011-1157?
3 open source packages ship an affected version, including feedparser. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
feedparser PyPI | All versions | 5.0.1 |
feedparser PyPI | From 5.0 | 5.0.1 |
feedparser PyPI | From 5.0 | 5.0.1 |
Products include Mark Pilgrim Feedparser.
How do I fix CVE-2011-1157?
Upgrade feedparser to 5.0.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2011-1157 being exploited?
There is no known exploitation of CVE-2011-1157 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2011-1157, GHSA-2p78-8hh6-96xc, PYSEC-2011-20.