Vulnerability in Ad Inserter – Ad Manager & AdSense Ads — CVE-2026-102905
What to do now
Update Ad Inserter – Ad Manager & AdSense Ads to 2.8.20 or later.
Affected versions
- Everything up to and including 2.8.19
Affected: Ad Inserter – Ad Manager & AdSense Ads (plugin, ad-inserter)
What the vulnerability is
The The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.8.19 This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes. Exploitation requires an administrator to have configured an ad block containing a dynamic tag such as {title}, {tag}, {category}, or {smart-tag} with display enabled on search pages, which is a normal and documented plugin configuration.
Sources
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.19/ad-inserter.php#L12974
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.19/ad-inserter.php#L13142
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.19/class.php#L3297
- https://plugins.trac.wordpress.org/changeset/3770281/ad-inserter/trunk/ad-inserter.php
- https://www.wordfence.com/threat-intel/vulnerabilities/id/a36f813c-97c5-466d-92e0-7341c12b5a46?source=cve