Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-73648— rails-html-sanitizer: Possible XSS vulnerability with certain configurations

Quick assessment

Affected
rails rails-html-sanitizer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

rails-html-sanitizer 库负责在 Rails 应用中清理 HTML 片段。从版本 1.0.3 到 1.7.1,Rails::HTML::PermitScrubber 仅在 SVG 元素使用 xlink:href 属性时才将 SVG 引用元素限制在 SVG_ALLOW_LOCAL_HREF 列表中,而实际上浏览器也支持使用普通的 href 属性。因此,如果应用自定义了允许标签并包含了 svg、use 或 feImage 元素,则可能允许外部引用。通过 use 元素引用同源外部 SVG 时,可能在清理

CVSS 5.1 · Medium EPSS 0.55% · P44

Affected Version Matrix 1

VendorProduct Version RangeStatus
rails rails-html-sanitizer >= 1.0.3, < 1.7.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-73648

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
rails-html-sanitizer: Possible XSS vulnerability with certain configurations
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
rails rails-html-sanitizer >= 1.0.3, < 1.7.1 -

II. Public POCs for CVE-2026-73648

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-73648

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-73648 (3)

Vendor Advisories for CVE-2026-73648 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-73648

No comments yet


Leave a comment