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.
Vendor | Product | Version | CPE |
---|---|---|---|
rubyonrails | rails_html_sanitizers | 1.3.0-1 | cpe:2.3:a:rubyonrails:rails_html_sanitizers:1.3.0-1:*:*:*:*:rails:*:* |
typo3 | html_sanitizer | 1.3.0_2.el8sat | cpe:2.3:a:typo3:html_sanitizer:1.3.0_2.el8sat:*:*:*:*:*:*:* |
typo3 | html_sanitizer | * | cpe:2.3:a:typo3:html_sanitizer:*:*:*:*:*:*:*:* |
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/