CVE-2009-5065

medium
Published 2022-05-02 ยท Modified 2023-11-08
CVSS v3
โ€”
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
5.3

Description

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 nested CDATA stanzas.

Predictions

Exploit likelihood
30%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-35570 remote multiple verified text ยท 1 KB
fazalmajid ยท 2011-04-05

python-feedparser 5.0 - '/feedparser/feedparser.py' Cross-Site Scripting

text exploit Source: Exploit-DB
source: https://www.securityfocus.com/bid/47177/info


python-feedparser is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. 

<!--
Description: ensure nested CDATA sections are sanitized properly
Expect: bozo and entries[0]['content'][0]['value'] == u'<![CDATA[]]>'
-->
<rss xmlns:content="http://www.example.com/rss/1.0/modules/content/" version="2.0">
<channel>
  <item>
    <content:encoded><![CDATA[<![CDATA[<script></script>]]>]]></content:encoded>
  </item>
</channel>
</rss

OS impact

debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 5.0.1-1
sid Fixed 5.0.1-1
forky Fixed 5.0.1-1
bullseye Fixed 5.0.1-1
bookworm Fixed 5.0.1-1

Package impact

EcosystemPackageVulnerableFixed
python PyPIfeedparser<5.05.0

Application impact

VendorProductVersionsFixed
mark_pilgrimfeedparser{"endIncluding":"4.1"}
mark_pilgrimfeedparser3.0
mark_pilgrimfeedparser3.0.1
mark_pilgrimfeedparser3.1
mark_pilgrimfeedparser3.2
mark_pilgrimfeedparser3.3
mark_pilgrimfeedparser4.0
mark_pilgrimfeedparser4.0.1
mark_pilgrimfeedparser4.0.2

References

CWEs

CWE-79

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.