Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| kepano / defuddle | affected < 0.9.0 |
CWE
CWE-79
References
- https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq
- https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9
ADP enrichment
No English description supplied.
No references supplied.