Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-30830 EUVD-2026-10118GHSA-5mq8-78gm-pjmq

Defuddle: XSS via unescaped string interpolation in _findContentBySchemaText image tag

Published Mar 7, 2026 · Updated Mar 10, 2026 · Assigned by GitHub_M

Description

Defuddle cleans up HTML pages. Prior to version 0.9.0, the _findContentBySchemaText method in src/defuddle.ts interpolates image src and alt attributes directly into an HTML string without escaping. An attacker can use a " in the alt attribute to break out of the attribute context and inject event handler. This issue has been patched in version 0.9.0.

Affected products

VendorProductAffectedFixed
kepano defuddle < 0.9.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm defuddle < 0.9.0 0.9.0 GHSA-5mq8-78gm-pjmq

References