WPSpeed 2.6.10以下 - 利用者のニックネーム/表示名を介した認証済み(購読者以上)の格納型クロスサイトスクリプティング

元情報の公開:2026/11/07 06:25 / 元情報の更新:2026/11/07 18:25(日本時間)

日本語訳

WordPress用プラグイン「WPSpeed」の2.6.10以下のバージョンには、格納型クロスサイトスクリプティングの脆弱性があります。原因は、LightImages HTML最適化処理の2つの問題の組み合わせです。(1)Dispatcher::runOptimize()は、REQUEST_URIのURLパスとホームURLのパスだけを比較して現在のリクエストがサイトのホームページかどうかを判断するため、基本のパーマリンク設定では投稿者アーカイブのURL /?author=〈ID〉がホームページとして扱われ、そこでLightImages最適化が実行されます。(2)既定で有効なimg_processing_entity_decode設定の下で、LightImages::optimize()がシリアライズされたDOMDocument出力全体にhtml_entity_decode()を呼び出し、ページ内にプレーンテキストとして存在するエンティティエンコード済みのマークアップ(WordPressが描画した投稿者タイトルを含む)を、動作するHTMLへ変換します。

これにより、購読者以上の権限を持つ認証済みの攻撃者は、通常のプロフィールエンドポイントを通じて自分のnickname/display_nameにエンティティエンコード済みのマークアップを保存でき、ログアウト状態の訪問者がその投稿者アーカイブを読み込むと、マークアップが復元されてスクリプトが実行されます。

原文(英語)

WPSpeed <= 2.6.10 - Authenticated (Subscriber+) Stored Cross-Site Scripting via User Nickname/Display Name

The WPSpeed plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.6.10 This is due to a combination of two issues in the LightImages HTML optimizer: (1) Dispatcher::runOptimize() decides whether the current request is the site's home page by comparing only the URL path from REQUEST_URI against the path of the home URL, so on a plain-permalinks install the author archive URL /?author=<ID> is treated as the home page and the LightImages optimizer runs on it; and (2) LightImages::optimize() calls html_entity_decode() across the entire serialized DOMDocument output under the default-enabled img_processing_entity_decode setting, converting any entity-encoded markup present as plain text in the page (including WordPress's rendered author title) into live HTML. This makes it possible for authenticated attackers, with Subscriber-level access and above, to store entity-encoded markup in their own nickname/display_name through the normal profile endpoint and have that markup rehydrated into executing script when any logged-out visitor loads their author archive.

引用元:Wordfence

確認と対応の進め方

WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。

影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。

更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。

プラグインの管理・更新方法(WordPress公式・日本語)

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る