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

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-06T18:39:35.000Z
- Modified: 2026-07-20T21:46:41.489Z
- Also known as: GHSA-5mq8-78gm-pjmq
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- kepano defuddle: < 0.9.0; before 0.9.0
- defuddle (npm): before 0.9.0

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:3.1 6.1 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30830> (advisory)
- <https://github.com/kepano/defuddle> (package)

## Sources

- CVE List: [CVE-2026-30830](https://www.cve.org/CVERecord?id=CVE-2026-30830), CVE Terms of Use, modified 2026-03-10
- GitHub Advisory Database: [GHSA-5mq8-78gm-pjmq](https://github.com/advisories/GHSA-5mq8-78gm-pjmq), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-30830](https://nvd.nist.gov/vuln/detail/CVE-2026-30830), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-30830 · Whole record: https://cve.day/CVE-2026-30830.json · Rebuilt by cve.day 2026-11-25T22:59:15.457Z
