CVE-2026-30830 Defuddle: XSS via unescaped string interpolation in _findContentBySchemaText image tag
LowCVSS 2.1
EPSS 0.29%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| kepano defuddle | < 0.9.0; = < 0.9.0 | 0.9.0 | Fixed |
| npm defuddle(npm) | < 0.9.0; <= 0.7.0 | 0.9.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kepano defuddle | = < 0.9.0 | No fix listed |
| npm defuddle(npm) | <= 0.7.0 | No fix listed |
| kepano defuddle | < 0.9.0 | 0.9.0 |
| npm defuddle(npm) | < 0.9.0 | 0.9.0 |
References
- https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq exploit mitigation vendor-advisory
- https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product