Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPublish malicious content with crafted attribute payload on X/Substack/YouTube
-
DeliveryVictim application invokes Defuddle site extractor against attacker URL
-
ExploitPage-derived value interpolated unescaped into template HTML string
-
InstallExtractor output returned without DOM sanitization pass
-
C2Victim application renders contentHtml in browser or Electron context
-
ExecuteInjected event handler executes in rendering context
-
ImpactAttacker exfiltrates session credentials or cookies
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 three concurrent conditions: the victim application must use Defuddle prior to version 0.19.1 and invoke one of the three affected extractors (x-article.ts for X/Twitter, substack.ts for Substack, youtube.ts for YouTube); the attacker must control content on a domain that triggers the relevant extractor, either by publishing content on X.com, Substack, or YouTube directly; and the extracted HTML must be rendered in a browser, Electron webview, or other JavaScript-executing HTML context. Applications that consume Defuddle output as plain text or strip HTML before rendering are not affected. No authentication to Defuddle or to the target domain is required of the attacker - the attack surface is the page content itself. Exploitation is bounded by the UI:R requirement: passive or opportunistic mass exploitation is not possible without a user or pipeline actively requesting extraction of an attacker-controlled URL. |
| Impact | The CVSS 8.2 score reflects a network-accessible, low-complexity XSS with scope change and high confidentiality impact - consistent with stored XSS that executes in a downstream rendering context. EPSS data was not provided in the input intelligence, so exploitation probability cannot be quantified from that signal. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified beyond the advisory and fixing PR. The S:C (scope changed) metric is appropriate because injected JavaScript executes in the rendering application's context - a browser, Electron webview, or downstream consumer - not merely within Defuddle's own processing scope. The practical attack surface is constrained by deployment profile: Defuddle is used primarily in content-extraction workflows such as Obsidian Web Clipper, so the exposed population is smaller than a general-purpose web server vulnerability, but any pipeline that programmatically extracts and renders content from attacker-influenced domains is exposed. The UI:R requirement rules out fully passive exploitation; a user or automated pipeline must invoke Defuddle against a malicious page, which limits opportunistic mass exploitation but does not prevent targeted attacks against known Defuddle-powered applications. |
| Exploit ScenarioDerived | An attacker publishes a post on X.com with a crafted image alt attribute containing a payload such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Cross-site scripting in Defuddle prior to 0.19.1 allows an attacker who controls content on a domain handled by a site extractor (X/Twitter, Substack, YouTube) to inject event-handler attributes or javascript: URLs into extracted HTML output. Three site extractors interpolate page-derived values - image alt/src attributes, og:image metadata, and video descriptions - into template literals without HTML escaping, and the resulting HTML is returned by buildExtractorResponse() without passing through the main pipeline's DOM-based sanitization. A vendor-released patch is available in version 0.19.1; no public exploit has been identified at time of analysis.
RemediationAI
Upgrade Defuddle to version 0.19.1 or later; the tagged release is available at https://github.com/kepano/defuddle/releases/tag/0.19.1, and the fixing commit is baf2eaef61d334ef595b28c89e5c5e89e52daf7f (pull request #326). If an immediate upgrade is not feasible, a compensating control is to pass contentHtml through a trusted HTML sanitizer such as DOMPurify before inserting it into any HTML rendering context; this adds a dependency and latency and should be treated as strictly temporary. Disabling the X, Substack, and YouTube site extractors eliminates the vulnerable code paths at the cost of losing specialized extraction for those domains. Do not treat downstream rendering-layer sanitization as a primary control - the advisory explicitly confirms this was the original design gap that the fix closes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Defuddle is a TypeScript/JavaScript HTML cleaning library (CPE: cpe:2.3:a:kepano:defuddle:*:*:*:*:*:*:*:*) that extracts and sanitizes article content from web pages. Its main pipeline applies DOM-based attribute sanitization via _stripUnsafeElements, but the site-specific extractors build output using JavaScript template literals. In versions prior to 0.19.1, values read directly from the page - image alt attributes, src URLs, og:image metadata, and video description text - were interpolated into template strings without calling escapeHtml(), as confirmed by the PR diff showing bare interpolations such as <img src="${src}" alt="${alt}"> in x-article.ts and similar patterns in substack.ts and youtube.ts. The resulting HTML was returned via buildExtractorResponse() without invoking the same sanitization pass used by the main pipeline. CWE-79 (Improper Neutralization of Input During Web Page Generation) precisely characterizes the root cause: untrusted, attacker-influenced input is embedded in an HTML output context without context-appropriate encoding. The fix in 0.19.1 applies escapeHtml() at each interpolation point in all three affected extractors and introduces a new _sanitizeExtractorHtml() method that parses extractor output into a DOM and runs _stripUnsafeElements before returning it, as confirmed by the commit baf2eaef61d334ef595b28c89e5c5e89e52daf7f.
Know when Defuddle 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
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Attacker controls source page content requiring no privileges (PR:N); victim must actively invoke extraction (UI:R); injected JS executes in downstream application context (S:C); high confidentiality from potential session theft.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Defuddle cleans up HTML pages. Prior to 0.19.1, site extractors interpolate page-derived image alt and src values, og:image values, and video descriptions into HTML strings without context-appropriate escaping, and buildExtractorResponse() returns this contentHtml without the main pipeline's DOM-based sanitization. The affected paths include src/extractors/x-article.ts, src/extractors/substack.ts, and src/extractors/youtube.ts. A malicious page or attacker-controlled content on a matching domain can inject event-handler attributes or javascript URLs that execute when a victim or downstream application renders the extracted HTML. This issue is fixed in version 0.19.1.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Defuddle prior to version 0.19.1 is vulnerable to cross-site scripting attacks that could allow attackers controlling content on social platforms (Twitter/X, Substack, YouTube) to inject malicious code executed when users process that content through Defuddle's extraction tools. No public exploit has been identified at time of analysis. Organizations using Defuddle face risks of unauthorized account access and data theft through compromised content extraction workflows.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-64132
GHSA-jg4p-g6xj-4qmf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB