CVE-2026-30830
LOW 2.1CVSS 4.0defuddle vulnerable to XSS via unescaped string interpolation in _findContentBySchemaText image tag
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.
- Published
- 7 Mar 2026
- Last modified
- 20 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-5mq8-78gm-pjmq
- Sources
- NVDJSONOSV GHSA-5mq8-78gm-pjmqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.1 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kepano | defuddlecpe:2.3:a:kepano:defuddle:*:*:*:*:*:node.js:*:* |
< 0.9.0 | 0.9.0 |
| OSV | npm | defuddle | < 0.9.0 | 0.9.0 |
References
- https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9 · Patch, WEB
- https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-30830 · ADVISORY
- https://github.com/kepano/defuddle · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 7 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Mar 2026)