The vendor explicitly identifies these products as affected by this CVE.
- 3scale-amp2/system-rhel8 as a component of Red Hat 3scale API Management Platform 2
- 3scale-amp2/system-rhel9 as a component of Red Hat 3scale API Management Platform 2
- 3scale-amp2/zync-rhel9 as a component of Red Hat 3scale API Management Platform 2
- rubygem-rails-html-sanitizer.src as a component of Red Hat Satellite 6
- satellite:el8/rubygem-rails-html-sanitizer.src as a component of Red Hat Satellite 6
- Summary
- A flaw was found in rails-html-sanitizer, a component responsible for sanitizing HTML fragments in Rails applications. This vulnerability allows a remote attacker to perform Cross-Site Scripting (XSS) by exploiting improper sanitization of SVG (Scalable Vector Graphics) reference elements. The Rails::HTML::PermitScrubber component failed to restrict the href attribute in SVG elements, which browsers accept in addition to xlink:href. This oversight could enable an attacker to execute malicious scripts in the context of the sanitized document or load external images for tracking, affecting applications configured with non-default allowed SVG tags.
- Remediation
- If the sanitizer's allowed tags have been overridden, remove SVG reference elements such as use and feImage from that list. Applications using the default allowed tags are not affected. Upgrade to rails-html-sanitizer 1.7.1 or later where a fix is available.
