CVE-2011-1158 feedparser Cross-site Scripting vulnerability

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script or HTML via unexpected URI schemes in the Universal Feed Parser library, requiring user interaction to execute.

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-1158?

CVE-2011-1158 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 an unexpected URI scheme, as demonstrated by a javascript: URI.

Weakness: CWE-79

Which versions are affected by CVE-2011-1158?

3 open source packages ship an affected version, including feedparser. It affects 1 product.

PackageAffectedFixed in
feedparser PyPIAll versions5.0.1
feedparser PyPIFrom 5.05.0.1
feedparser PyPIFrom 5.05.0.1

Products include Mark Pilgrim Feedparser.

How do I fix CVE-2011-1158?

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-1158 being exploited?

There is no known exploitation of CVE-2011-1158 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2011-1158, GHSA-4m72-rmm9-2qjr, PYSEC-2011-21.

Is CVE-2011-1158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free