Lucene search

K
osvGoogleOSV:GHSA-8J9V-H2VP-2HHV
HistoryJan 04, 2021 - 6:22 p.m.

XSS in HtmlSanitizer

2021-01-0418:22:11
Google
osv.dev
16
xss
htmlsanitizer
vulnerability
script
patch
version 5.0.372
style tag
workaround
securitum
michal bentkowski
advisory
github

EPSS

0.001

Percentile

46.3%

Impact

If you have explicitly allowed the <style> tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the <style> tag so there is no risk if you have not explicitly allowed the <style> tag.

Patches

The problem has been fixed in version 5.0.372.

Workarounds

Remove the <style> tag from the set of allowed tags.

For more information

If you have any questions or comments about this advisory open an issue in https://github.com/mganss/HtmlSanitizer

Credits

This issue was discovered by Michal Bentkowski of Securitum.

EPSS

0.001

Percentile

46.3%

Related for OSV:GHSA-8J9V-H2VP-2HHV