Skip to main content

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVE-2026-73648

Severity Medium
Score 5.1/10

Summary

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. In versions 1.0.3 prior to 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.

  • LOW
  • NETWORK
  • ACTIVE
  • NONE

CWE-79 - Cross Site Scripting

Cross-Site Scripting, commonly referred to as XSS, is the most dominant class of vulnerabilities. It allows an attacker to inject malicious code into a pregnable web application and victimize its users. The exploitation of such a weakness can cause severe issues such as account takeover, and sensitive data exfiltration. Because of the prevalence of XSS vulnerabilities and their high rate of exploitation, it has remained in the OWASP top 10 vulnerabilities for years.

Advisory Timeline

  • Published