Contact Form to Any API 3.0.7以下 - CF7フォームフィールドの送信を介した認証不要の保存型クロスサイトスクリプティング
元情報の公開:2026/11/20 09:00 / 元情報の更新:2026/11/21 16:45(日本時間)
日本語訳
WordPress用プラグイン「Contact Form to Any API」は、3.0.7以下のすべてのバージョンで、入力のサニタイズと出力のエスケープが不十分なため、your-message(任意のCF7フォームフィールド)パラメータを介した保存型クロスサイトスクリプティングの脆弱性があります。認証されていない攻撃者が任意のウェブスクリプトをページに埋め込み、そのページにユーザーがアクセスするたびにスクリプトを実行させることができます。
悪意あるペイロードは、Contact Form 7の公開RESTフィードバックエンドポイントへ認証不要のPOSTを1回送信することで保存されます。このエンドポイントはpermission_callbackに__return_trueを使用しており、送信に認証や事前のやり取りを必要としません。
原文(英語)
Contact Form to Any API <= 3.0.7 - Unauthenticated Stored Cross-Site Scripting via CF7 Form Field Submissions
The Contact Form to Any API plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'your-message (any CF7 form field)' parameter in all versions up to, and including, 3.0.7 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. The malicious payload is stored via a single unauthenticated POST to Contact Form 7's public REST feedback endpoint, which uses permission_callback __return_true and requires no authentication or prior interaction to submit.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。