Intel

AIKIDO-2026-970758

defuddle is vulnerable to Cross-Site Scripting (XSS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 27, 2026
July 27, 2026

50

CVE Score

Medium

Cross-Site Scripting (XSS)

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.

How do I fix this?

Upgrade the defuddle library to the patch version.

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.

Package

Versions

0.15.0 - 0.19.1

Fixed in 0.19.2

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea