CyberRota Analysis
AI-GeneratedThe vulnerability affects the rails-html-sanitizer in Rails applications, specifically versions 1.0.3 to 1.7.1, where improper handling of SVG reference elements allows for the inclusion of external references via the plain href attribute. This could enable attackers to execute scripts in the context of sanitized documents or load external images for tracking purposes. Developers using non-default allowed tags that include SVG elements should prioritize upgrading to version 1.7.1 to mitigate potential security risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.