Low severityNVD Advisory· Published Mar 7, 2026· Updated Mar 10, 2026
Defuddle: XSS via unescaped string interpolation in _findContentBySchemaText image tag
CVE-2026-30830
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
defuddlenpm | < 0.9.0 | 0.9.0 |
Affected products
2Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-5mq8-78gm-pjmqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-30830ghsaADVISORY
- github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9ghsax_refsource_MISCWEB
- github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmqghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.