Vulnerability in Ad Inserter – Ad Manager & AdSense Ads — CVE-2026-120034
What to do now
Update Ad Inserter – Ad Manager & AdSense Ads to 2.8.21 or later.
Affected versions
- Everything up to and including 2.8.20
Affected: Ad Inserter – Ad Manager & AdSense Ads (plugin, ad-inserter)
What the vulnerability is
The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ai-global-field-<N>' parameter in all versions up to, and including, 2.8.20 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires that a site administrator has enabled a Global Custom Fields page, lowered its Access setting to the attacker's role, and configured at least one field of type Image bound to that page.
Sources
- https://plugins.trac.wordpress.org/browser/ad-inserter/
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L8872
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L8874
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L8902
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/class.php#L11273
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/class.php#L11683