rails-html-sanitizer: Possible regular expression denial of service with certain configurations
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| rubygems:rails-html-sanitizer | >= 1.0.3, < 1.7.2 | 1.7.2 |
Rails::HTML::PermitScrubber restricts the href and xlink:href attributes of SVG reference elements to local references. That check matched the attribute value against /^\s[^#\s]./m. In Ruby ^ anchors to every line start and \s matches newlines, so an all-whitespace value made the engine rescan the value from each of its line starts, taking time quadratic in its length. - Versions affected: >= 1.0.3, < 1.7.2 - Not affected: < 1.0.3 - Fixed versions: 1.7.2 Only Ruby 3.1 and earlier are affected.…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/11/14 02:54、GitHub Advisory Databaseが「rails-html-sanitizer: Possible regular expression denial of service with certain configurations」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: Ruby、Ruby on Rails。CVE: CVE-2026-128068。