rails-html-sanitizer is vulnerable to cross-site scripting attacks. An attacker is able to inject and execute malicious javascript through the sanitize_css
function when the library is configured to override the style tags to allow both select
and style
elements.
github.com/advisories/GHSA-pg8v-g4xq-hww9
github.com/rails/rails-html-sanitizer/commit/9b79253eb888a74e425c7da073c46014b8290d58
github.com/rails/rails-html-sanitizer/pull/137
hackerone.com/reports/1530898
lists.debian.org/debian-lts-announce/2022/12/msg00012.html
lists.fedoraproject.org/archives/list/[email protected]/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH/
lists.fedoraproject.org/archives/list/[email protected]/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47/