WordPressプラグイン「Ad Inserter – Ad Manager & AdSense Ads」にクロスサイトスクリプティング(XSS)の脆弱性(CVE-2026-19902)
概要
WordPressプラグイン「Ad Inserter – Ad Manager & AdSense Ads」にクロスサイトスクリプティング(XSS)の脆弱性が確認されました。
バージョン 2.8.18 以前に影響があります。
修正版 2.8.19 への更新が推奨されます。
脆弱性の基本情報
| 脆弱性ID |
CVE-2026-19902 WF-5d632cce-40a9-4969-b213-8370ae75287e |
|---|---|
| 脆弱性の種類 | クロスサイトスクリプティング(XSS) |
| 危険度 | 中 |
| CVSSスコア |
6.1(CVSS v3.1) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 公開日 | 2026年9月30日 |
| 更新日 | 2026年10月1日 |
影響を受ける製品
| 製品 | 影響を受けるバージョン | 修正版 | 出典 |
|---|---|---|---|
| WordPressプラグイン「Ad Inserter – Ad Manager & AdSense Ads」 |
2.8.18 以前 | 2.8.19 | Wordfence Intelligence |
推奨対応
- WordPressプラグイン「Ad Inserter – Ad Manager & AdSense Ads」を修正版 2.8.19 またはそれ以降の公式最新版へ更新してください。
情報元の原文
Wordfence Intelligence
Ad Inserter <= 2.8.18 - Reflected Cross-Site Scripting via {search-query} Dynamic Tag (Referer Header)
The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the Referer header in all versions up to, and including, 2.8.18 due to insufficient input sanitization and output escaping on the '{search-query}' dynamic tag. When an ad block's code contains that tag, replace_ai_tags() reads $_SERVER['HTTP_REFERER'] and tests it with the regex /[\.\/](google|yahoo|bing|ask)\.[a-z\.]{2,5}[\/]/i. The leading [\.\/] class matches a literal slash, so any referrer merely containing a segment such as '/google.com/' passes as a search-engine referral; the plugin then percent-decodes the referring query with parse_str() and substitutes the resulting 'q' (or 'p') value into the block via preg_replace() with no escaping. This makes it possible for unauthenticated attackers to execute arbitrary JavaScript in the context of the site for any visitor, including a signed-in administrator, by luring them to an attacker-controlled page that frames or links to any ordinary post. Exploitation requires the site to have an ad block whose code uses the '{search-query}' tag with automatic insertion enabled — a documented plugin feature used as intended.
Copyright 2012-2026 Defiant Inc.
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
Copyright 1999-2026 The MITRE Corporation
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.