{"id":31701,"date":"2026-10-01T16:33:11","date_gmt":"2026-10-01T08:33:11","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-19902"},"modified":"2026-10-01T16:33:11","modified_gmt":"2026-10-01T08:33:11","slug":"cve-2026-19902","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-19902","title":{"rendered":"CVE-2026-19902 [MEDIUM] &#8211; The Ad Inserter \u2013 Ad Manager &amp; AdSense Ads plugin for WordPress is vulnerable to Reflected"},"content":{"rendered":"<p>The Ad Inserter \u2013 Ad Manager &amp; 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 &#8216;{search-query}&#8217; dynamic tag. When an ad block&#8217;s code contains that tag, replace_ai_tags() reads $_SERVER[&#8216;HTTP_REFERER&#8217;] 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 &#8216;\/google.com\/&#8217; passes as a search-engine referral; the plugin then percent-decodes the referring query with parse_str() and substitutes the resulting &#8216;q&#8217; (or &#8216;p&#8217;) 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 &#8216;{search-query}&#8217; tag with automatic insertion enabled \u2014 a documented plugin feature used as intended.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Ad Inserter \u2013 Ad Manager &amp; 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 <\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-31701","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/31701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}