CVE-2026-30830 Details
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.
A cross-site scripting (XSS) vulnerability exists in Defuddle versions prior to 0.9.0. The issue arises in the '_findContentBySchemaText' method, which improperly interpolates image 'src' and 'alt' attributes into an HTML string without escaping. This flaw allows an attacker to inject event handlers by exploiting the 'alt' attribute. The vulnerability is triggered when the method processes schema.org structured data, particularly with images containing crafted 'alt' attributes. Although a recent update introduced a sanitization function to remove event-handler attributes from the DOM, this specific injection bypasses those measures by occurring during the HTML string construction, not within the DOM context.
Users can update to Defuddle version 0.9.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9 | [email protected] | Patch |
| https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| kepano defuddle | < 0.9.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 11, 2026 | Initial Analysis | [email protected] |
| Mar 7, 2026 | New CVE Received | [email protected] |