Intel

AIKIDO-2026-238520

defuddle is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-wcqc-p9mh-prvm Published 2 days ago

61

Medium Risk

This Affects:

JSdefuddle
0.9.0 - 0.19.2
Fixed in 0.19.3
Are you affected? Scan for Free

TL;DR

Defuddle extracts article content and when DOM extraction has insufficient content, falls back to the schema.org JSON-LD articleBody field. This fallback path assigns the externally supplied HTML directly to the extraction result without routing it through the library's sanitizer. A parsed page can place malicious markup in the JSON-LD articleBody, and applications that render the extracted content as HTML then execute the injected script. The fix sanitizes the schema.org fallback HTML before it is returned.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders Defuddle's extracted content as HTML.

Background info

defuddle is vulnerable to Cross-Site Scripting (XSS) in versions 0.9.0 - 0.19.2.

How to fix this

Upgrade the defuddle library to the patch version.