OWASP/java-html-sanitizer

Incorrect escaping for inline svg+xml data image

brsyuksel opened this issue · 0 comments

HtmlSanitizer encodes the given input to <img src="data:image/svg&#43;xml" /> that should be <img src="data:image/svg+xml" />

Since svg&#43;xml is not recognizable mimetype for browsers, they are just ignored.