Swatchly <= 1.4.18 - コメント内容を介した認証不要の保存型クロスサイトスクリプティング
元情報の公開:2026-12-01 21:44:35 / 更新:2026-12-02 11:30:14(UTC)
日本語訳
WordPress 用の Swatchly – Product Variation Swatches for WooCommerce プラグインは、入力のサニタイズと出力のエスケープが不十分であるため、バージョン 1.4.18 まで(1.4.18 を含む)すべてのバージョンにおいて「comment」パラメータを通した保存型クロスサイトスクリプティングの脆弱性が存在します。この脆弱性により、認証不要な攻撃者が任意のウェブスクリプトをコメントに埋め込み、当該ページが閲覧されるたびにスクリプトが実行されます。
利用には Elementor が同時にインストールされている必要があり(プラグインは Elementor の有無でフィルタを切り替える)、攻撃者は事前に承認されたコメントを 1 件投稿している必要があります。その後、WordPress のデフォルト設定である comment_previously_approved により、同一の名前とメールアドレスからの以降のコメントは自動的に承認されます。
原文(英語)
Swatchly <= 1.4.18 - Unauthenticated Stored Cross-Site Scripting via Comment Content
The Swatchly – Product Variation Swatches for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 1.4.18 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires Elementor to be co-installed (the plugin gates the filter on its presence) and the attacker to have had one prior comment approved, after which WordPress's default comment_previously_approved setting causes subsequent comments from the same name and email to be auto-approved.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。