Intel

AIKIDO-2026-970758

defuddle is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 6 days ago

50

Medium Risk

This Affects:

JSdefuddle
0.15.0 - 0.19.1
Fixed in 0.19.2
Are you affected? Scan for Free

TL;DR

defuddle extracts and sanitizes article HTML from untrusted web pages before returning it to consumers. Its URL sanitization only rejects javascript: and data:text/html, so blob: URLs and other data: documents (including data:image/svg+xml used as an iframe src) survive, and the unsafe-attribute strip does not run on the main extraction output when standardization is disabled. An attacker who controls a page or matching-domain content can smuggle a script-bearing document into an attribute that bypasses the script and event-handler stripping and executes when a consumer renders the extracted output, resulting in Cross-Site Scripting. The fix rejects data: and blob: URLs (allowing only inline data:image/* outside an iframe src), runs the unsafe-element strip on the main output unconditionally, and preserves the iframe sandbox attribute.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders the extracted HTML output from untrusted pages.

Background info

defuddle is vulnerable to Cross-Site Scripting (XSS) in versions 0.15.0 - 0.19.1.

How to fix this

Upgrade the defuddle library to the patch version.