WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›Node.js›CVE-2026-61784

警告 CVSS 6.1 Node.js CVE-2026-61784 公表 2026年9月24日

xhtml-purifierの入力検証不備

Node.js — CVE-2026-61784

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

xhtml-purifierで、危険な文字の処理が不十分なため、消したはずのHTMLに不正な属性を混ぜ込める問題です。見た目を整える処理をすり抜けて、JavaScriptが動くおそれがあります。

放置するとどうなるか

閲覧した人の画面で不正なスクリプトが動き、情報の盗み取りや不正操作につながるおそれがあります。フォームや投稿欄を通じて被害が広がる可能性があります。

今すぐやること

xhtml-purifierを0.4.3へ更新してください。入力欄や記事本文に使っている場合は、更新後も実際の表示を確認し、必要なら追加の無害化処理を入れてください。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに Node.js が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「prior to 0.4.3」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
xhtml-purifier is a Node.js library to take in raw/unknown/untrusted HTML and output cleaned, purified, trusted HTML. Versions prior to 0.4.3 do not HTML-entity-encode attribute values when serializing its sanitized output. In attributeString() (XHTMLPurifier.js, around line 148) the attribute value is concatenated directly into a double-quoted attribute without encoding. As a result, an attacker-controlled value in any allowed attribute (class, style, title, alt, src, href) can include a double-quote character to break out of the attribute and inject an additional attribute, such as a JavaScript event handler (for example onmouseover or onerror). The injected handler survives sanitization and executes when the output is rendered, which is a sanitizer bypass leading to cross-site scripting. The fix in version 0.4.3 HTML-entity-encodes attribute values before serialization.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →