Skip to main content

feedparser CVE-2026-142694

| EUVDEUVD-2026-141997 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-12-03 VulnCheck GHSA-q48p-4mr2-xwmc
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control a feed consumed by target app
  2. Delivery
    Embed javascript: URI in SVG xlink:href or form action
  3. Exploit
    Sanitizer applies scheme check to href only, payload passes
  4. Execution
    Application renders sanitized feed as HTML
  5. Impact
    Script executes in app's origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following: the target application consumes a feed whose content an attacker can control, it passes that content through feedparser's HTML sanitizer, and it then renders the sanitized output as HTML in a browser context without additional downstream sanitization. The concrete trigger is a javascript: URI placed specifically in an SVG xlink:href attribute or a form action attribute - not a plain href, which was already scheme-checked. Limiting factors that reduce real-world risk: the flaw yields no impact on the feedparser host itself (VC/VI/VA = N) and only affects the rendering origin; it requires user interaction (UI:A - a victim must render the malicious feed); and it only matters when the application actually emits feedparser's sanitized HTML into a live browser DOM.

Impact

This is a genuine but moderate-priority client-side XSS issue, not a high-severity emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N, score 5.1 Medium) is internally consistent with the description: the flaw is reachable over the network because feedparser consumes remote feed content, needs no privileges, but requires user interaction (a victim rendering the feed) and only yields low confidentiality/integrity impact on a subsequent system (the rendering application's browser origin) with zero impact on the feedparser host itself. No EPSS score was provided, and the CVE is not listed in CISA KEV, so there is no public-exploitation signal. A PoC reference exists but the input marks it as not verified as working exploit code, so POC availability must not be read as active exploitation - these are distinct signals and here only the weaker one is present. The vendor priority label is 'this_month', which aligns with the medium CVSS and absence of KEV/EPSS escalation. Net: a real, patchable XSS worth scheduled remediation for anyone rendering feedparser-sanitized output as HTML, but not a drop-everything issue. Missing data to note: no EPSS probability was supplied, and the PoC's actual exploitability is unconfirmed.

Exploit ScenarioDerived

An attacker who controls a feed that a victim application consumes embeds a javascript: URI inside an SVG xlink:href or a form action attribute. Because feedparser's HTMLSanitizer only applies scheme checks to href attributes, the payload survives sanitization, and when the application renders the feed content as HTML the script executes in the application's origin. A public PoC reference exists (a gist and the upstream issue), but it is not verified as working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 03, 2026

Cross-site scripting in feedparser through 6.0.14 lets an attacker who controls a consumed feed smuggle javascript: URIs past HTMLSanitizer.unknown_starttag(), because the URI scheme check is applied only to plain href attributes and not to SVG xlink:href or form action attributes. The flaw has no impact on the feedparser host itself; it only matters when an application parses an attacker-controlled feed, passes the content through feedparser's sanitizer, and then renders that sanitized markup into a live browser DOM without further downstream sanitization, at which point script runs in the rendering application's origin. It requires a victim to render the malicious feed (UI:R), a public PoC reference exists but is not verified as working exploit code, and the vendor fix is available as an upstream pull request; it is not confirmed as actively exploited.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. The patch is https://github.com/kurtmckee/feedparser/pull/620, which changes the sanitizer's attribute check from key == "href" to key in ("href", "xlink:href") in feedparser/sanitizer.py and adds regression tests; apply that commit, or upgrade to the first feedparser release that contains it, and verify the installed version rather than assuming a fix version that has not been confirmed. Because the diff shown covers xlink:href and the advisory also names form action, treat the form action vector as unverified until a release note or commit explicitly addresses it. Until patched, the practical control is to add a second, independent HTML sanitization pass over feedparser's output (for example an allow-list sanitizer that checks URI schemes on all URL-bearing attributes, including SVG xlink:href and form action) before the markup reaches the DOM; the trade-off is added processing cost and possible stripping of legitimate SVG or form markup. Alternatively, render feed content inside a sandboxed iframe on a separate origin so any residual script cannot reach the host application's origin, at the cost of breaking embedding and same-origin interactions, or restrict rendering to plain text, which removes the attack surface entirely but loses rich formatting. Refer to https://github.com/kurtmckee/feedparser/issues/619 and the VulnCheck advisory for the vendor's guidance.

Affected VersionsENISA

feedparser 0 ≤6.0.14

Affected Packages

euvd feedparser no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

feedparser ships an HTML sanitizer (feedparser/sanitizer.py) built on Python's SGML-style parser; its unknown_starttag() handler walks each element's attribute list and, for URL-bearing attributes, consults the scheme allow-list logic in feedparser/urls.py before deciding whether to keep or blank the value. The root cause is CWE-79 (improper neutralization of input during web page generation): that sanitizer hard-coded the attribute name "href" as the only key subject to scheme validation, so SVG attributes that are functionally equivalent hyperlinks - xlink:href on SVG <a> and <set> elements - as well as HTML form action attributes were copied through unsanitized, carrying javascript: URIs into the rendered document. Because feed content is by definition untrusted and third-party, a feed author can place such markup in a feed entry that the consuming application later renders, executing script in that application's origin (the CVSS 4.0 vector reflects scope change: no confidentiality, integrity or availability impact on the vulnerable component itself, but low impact on the adjacent rendering application). The upstream fix in PR 620 broadens the check from a single exact match to the tuple ("href", "xlink:href"), and the accompanying tests confirm unsafe schemes are stripped from SVG xlink:href while safe https: schemes are preserved. Note that the supplied diff addresses xlink:href only; the form action path described in the advisory is not shown as modified in that diff.

Know when Feedparser gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Remote attacker-controlled feed (AV:N, PR:N), victim must render it (UI:R); the sanitizer flaw lets script cross into the rendering app's origin (S:C) for low C/I, no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

feedparser through 6.0.14 contains a cross-site scripting vulnerability in HTMLSanitizer.unknown_starttag() that allows javascript: URIs to bypass sanitization because scheme checks apply only to href attributes. Attackers controlling a consumed feed can embed javascript: URIs in SVG xlink:href or form action attributes to execute script in the rendering application's origin.

Threat Intelligence Overview

EPSS Score
0.3%
Top 71% exploitable
Prevalence
High
widely-used Python RSS/Atom feed-parsing library in many web apps
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy