rails-html-sanitizer に クロスサイトスクリプティング (CVE-2026-73648)
概要
rails-html-sanitizer に XSS (クロスサイトスクリプティング) (CVE-2026-73648) が存在。不正な操作・情報露出のリスクがあります。SVG_ALLOW_LOCAL_HREF 経由で攻撃可能。対策: 1.7.1 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
There is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as ``. See related GHSA-9wjq-cp2p-hrgf in Loofah, whose SVG local-reference logic rails-html-sanitizer mirrors.
- Versions affected:
>= 1.0.3, < 1.7.1 - Not affected:
< 1.0.3 - Fixed versions:
1.7.1
Impact
Rails::HTML::PermitScrubber restricts SVG reference elements in the SVG_ALLOW_LOCAL_HREF collection to local, same-document references, but that restriction covered only the xlink:href attribute. Browsers also accept a plain href attribute per the SVG 2 spec, and it was not restricted, so those elements could reference arbitrary external documents. SVG can load and render external SVG content by reference, and if the referenced document is same-origin and contains scripts, it could execute in the context of the sanitized document. can load external images, which can be used for tracking.
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example or. The default allowed tags do not include these SVG elements, so applications using the default configuration are not affected.
Workarounds
Remove the SVG reference elements (such as use and feImage) from the overridden allowed tags. Applications using the default allowed tags are n…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
rails-html-sanitizer という製品で、CVE-2026-73648 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに SVG_ALLOW_LOCAL_HREF のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: rails-html-sanitizer を 1.7.1 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「rails-html-sanitizer CVE-2026-73648」を検索してください。
CVE-2026-73648 (rails-html-sanitizer) — CWE-79
脆弱箇所: SVG_ALLOW_LOCAL_HREF / href / use / feImage
修正バージョン: 1.7.1 (即時適用推奨)
暫定回避: Remove the SVG reference elements (such as use and feImage) from the overridden allowed tags.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
rails-html-sanitizer に クロスサイトスクリプティング (XSS) (CWE-79) があります。攻撃者は SVG_ALLOW_LOCAL_HREF を経由して脆弱な処理に到達できます。
rails-html-sanitizer の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: SVG_ALLOW_LOCAL_HREF / href / use / feImage。
重要度: ?。不正な操作・情報露出のリスクがあります。
1.7.1 に更新してください。
暫定回避: Remove the SVG reference elements (such as use and feImage) from the overridden allowed tags.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'rails-html-sanitizer' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
rails-html-sanitizerを grep し、稼働しているサービス・バージョンを把握する。 -
2暫定回避策の適用 mitigate
Remove the SVG reference elements (such as `use` and `feImage`) from the overridden allowed tags.パッチが適用されるまでの応急処置として、Remove the SVG reference elements (such as
useandfeImage) from the overridden allowed tags. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3パッチ適用 patch
Upgrade rails-html-sanitizer to 1.7.1ステージング環境で 1.7.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。